Skip to content
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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

skamril
Copy link
Member

@skamril skamril commented Aug 14, 2024

No description provided.

@skamril skamril self-assigned this Aug 14, 2024
@skamril skamril requested a review from hdinia August 14, 2024 13:00
@skamril skamril force-pushed the feature/update_main_workflow branch from 5d4258d to c61897f Compare August 14, 2024 15:05
@pull-request-size pull-request-size bot added size/M and removed size/L labels Aug 14, 2024
@skamril skamril force-pushed the feature/update_main_workflow branch 17 times, most recently from 72547ba to afdc65f Compare August 14, 2024 17:27
@pull-request-size pull-request-size bot added size/L and removed size/M labels Aug 14, 2024
@skamril skamril force-pushed the feature/update_main_workflow branch 5 times, most recently from ac2fafa to 6406748 Compare August 14, 2024 19:18
@skamril skamril force-pushed the feature/update_main_workflow branch 9 times, most recently from f396d81 to 8c748a3 Compare August 14, 2024 22:48
@skamril skamril force-pushed the feature/update_main_workflow branch from 8c748a3 to a185db5 Compare August 14, 2024 22:51
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
Copy link
Member

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

Copy link
Member Author

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]
Copy link
Member

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.

Copy link
Member Author

@skamril skamril Sep 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants