Repository navigation
Run CI once per pull request, skip tests for docs-only changes - #75
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Every commit on a pull request ran the whole suite twice, once for
pushand once forpull_request, and a change to docs, Markdown or the release workflows ran it like a code change. Same change as packstub/session-replay#80.What changes
pushruns only onmain(after a merge); a pull request runs once. A tag push no longer runs the tests either.What changedjob lists what the change touches. When only docs, Markdown,art/or the plumbing that no test covers (the release, docs-sync, add-to-project, Dependabot auto-merge, code style and package health workflows,.github/release.yml,dependabot.yml,FUNDING.yml, the issue templates) changed, every test job skips.Tests passedstill reports, so the required check never waits: it passes when every job succeeded, or when the test jobs skipped because only docs changed, and fails on anything else.tests.ymlincluded, runs everything, as does a push with no base to compare with.Tests
tests.yml, so its own run takes the full path, once.