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

Ignore docs/ and similar paths for test workflow #3061

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Conversation

squaremo
Copy link
Contributor

The tests workflow just runs unit tests and integration tests (make targets integration-tests and unit-tests-with-coverage). I've added some fairly conservative paths to the GitHub workflow under on.paths-ignore, so that PRs with just changes to docs aren't contingent on the tests. This saves some waiting, and some resources.

  • docs/** # these are not involved in the tests
  • bin/** # scripts that are not involved in the tests

In general we do want to run tests if it's the workflow itself that's changed, so I've bene more specific in .github/ and just ignored the templates.

Why was this change made?

I got annoyed waiting for test retries to complete on #2909.

How did you validate the change?

We'll have to wait until it's actually run. It's tricky to test CI scripts!

@squaremo squaremo added the exclude from release notes Use this label to exclude a PR from the release notes label Jul 11, 2023
@squaremo squaremo requested a review from foot July 11, 2023 09:23
Copy link
Collaborator

@foot foot left a comment

Choose a reason for hiding this comment

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

💯

The tests workflow just runs unit tests and integration tests (make
targets `integration-tests` and `unit-tests-with-coverage`). I've
added some fairly conservative paths to the GitHub workflow under
on.paths-ignore, so that PRs with _just_ changes to docs aren't
contingent on the tests. This saves some waiting, and some resources.

 - docs/** # these are not involved in the tests
 - bin/** # scripts that are not involved in the tests

In general we _do_ want to run tests if it's the workflow itself
that's changed, so I've bene more specific in `.github/` and just
ignored the templates.

Signed-off-by: Michael Bridgen <[email protected]>
@squaremo squaremo merged commit c6d5e37 into main Jul 11, 2023
@squaremo squaremo deleted the paths-ignore branch July 11, 2023 16:30
@squaremo
Copy link
Contributor Author

Thanks Simon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from release notes Use this label to exclude a PR from the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants