-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci(github): update workflows #2121
base: dev
Are you sure you want to change the base?
Conversation
5d4258d
to
c61897f
Compare
72547ba
to
afdc65f
Compare
ac2fafa
to
6406748
Compare
8c748a3
to
a185db5
Compare
id: detect-changes | ||
run: | | ||
git fetch origin ${{ github.event.pull_request.base.ref }} --depth=1 | ||
if git diff --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD | grep -Eq '^antarest/|^tests/|^resources/|^requirements.*\.txt$'; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build will be affected by other configuration files (setup files, pyproject.toml, maybe alembic configuration too...): to be checked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok thanks
# So we use conditions to control job execution (`if: ...`) instead of `pull_request` event parameters. | ||
# A job that is skipped will report its status as "Success". | ||
# It will not prevent a pull request from merging, even if it is a required check. | ||
on: [pull_request] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running this workflow on pull requests will not be enough:
we still want all tests and sonarcloud to be run on main and dev branches when we merge into them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A pull request must be open to merge into dev
and master
(branch protection rules), so on: [pull_request]
is enough here.
a185db5
to
892c95f
Compare
No description provided.