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: Run dev.yml, sterile.yml workflows on pull_request #76

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

qmonnet
Copy link
Member

@qmonnet qmonnet commented Nov 12, 2024

  • ci: Harmonise workflow description files
  • ci: Run dev.yml, sterile.yml workflows on pull_request

@qmonnet qmonnet added the ci Continuous Integration label Nov 12, 2024
@qmonnet qmonnet force-pushed the pr/qmonnet/ci-pull-request branch 2 times, most recently from 3a80737 to be39fcc Compare November 12, 2024 11:02
Copy link
Collaborator

@daniel-noland daniel-noland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nit

.github/workflows/docs.yml Outdated Show resolved Hide resolved
Make workflow description files more consistent:

- Add a comment to describe the workflow at the top of the file, for
  workflows that didn't have one yet
- Use consistent options for tmate options on "workflow_dispatch"
- Use a consistent order for trigger events ("on:")
- Use a consistent order for workflow permissions
- Use a blank line between top-level sections
- Remove trailing blank lines at the end of files

The objective is to make it easier to compare the different workflow
files visually.

No functional change.

Signed-off-by: Quentin Monnet <[email protected]>
Rather than running the dev.yml and sterile.yml workflows everytime
developers push to any branch, run them for "pull_target" events. This
makes it easier to integrate with Pull Requests (for example for setting
required tests) and avoids running unnecessary workflows when branches
are pushed with no immediate intention to open a PR.

Keep running on "push", but for "main" branch only, to run the workflows
on the new "main" when PRs get merged.

Signed-off-by: Quentin Monnet <[email protected]>
@qmonnet qmonnet force-pushed the pr/qmonnet/ci-pull-request branch from be39fcc to d9ec43b Compare November 12, 2024 14:52
@qmonnet qmonnet enabled auto-merge (rebase) November 12, 2024 14:56
Copy link
Collaborator

@daniel-noland daniel-noland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All fixed. Nice work

@qmonnet qmonnet merged commit 7a1c2dc into main Nov 12, 2024
14 checks passed
@qmonnet qmonnet deleted the pr/qmonnet/ci-pull-request branch November 12, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants