-
Notifications
You must be signed in to change notification settings - Fork 2
ci: skip Build & Test e2e for docs/workflow-only PRs #101
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
Merged
+77
−0
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
403ab32
ci: skip e2e for docs/workflow-only PRs while keeping required check …
ricogu efbe372
ci: pin myrotvorets/set-commit-status-action to v2.0.1 SHA
ricogu f82a920
Merge branch 'main' into ci/skip-build-and-test-on-non-code-changes
ricogu 9eeb2a2
Merge branch 'main' into ci/skip-build-and-test-on-non-code-changes
ricogu 0bf777d
ci: retrigger workflows
ricogu ebc3b5a
ci: trigger workflows
ricogu f6b06ba
Merge branch 'main' into ci/skip-build-and-test-on-non-code-changes
ricogu 41a2aca
Merge branch 'main' into ci/skip-build-and-test-on-non-code-changes
ricogu 913d754
Merge branch 'main' into ci/skip-build-and-test-on-non-code-changes
mdanish98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # Paired workflow for build-and-test.yml. | ||
| # | ||
| # When a PR only changes documentation, license metadata, or workflow files | ||
| # unrelated to the action's runtime (CodeQL, Dependabot, Renovate config), | ||
| # build-and-test.yml is skipped via its paths-ignore filter and would never | ||
| # report the `all-tests-passed` commit status that the repository ruleset | ||
| # requires for merge. | ||
| # | ||
| # This workflow runs in the inverse case (`paths:` is the inverse of | ||
| # `paths-ignore:` in build-and-test.yml) and reports `all-tests-passed` | ||
| # = success directly, satisfying the ruleset without invoking the full | ||
| # e2e suite. Both workflows share `name: Build & Test` so the status | ||
| # context name (`all-tests-passed`) is identical. | ||
| # | ||
| # If a PR mixes ignored and non-ignored paths, BOTH workflows run. | ||
| # The skip workflow finishes in seconds while the real workflow takes | ||
| # minutes, so the real run's status is the last write — the genuine | ||
| # result wins. | ||
|
|
||
| name: Build & Test | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| # Inverse of build-and-test.yml's paths-ignore. Keep the two lists | ||
| # identical when adding/removing entries. | ||
| paths: | ||
| - '**/*.md' | ||
| - 'LICENSE' | ||
| - 'LICENSES/**' | ||
| - 'REUSE.toml' | ||
| - 'renovate.json' | ||
| - '.gitignore' | ||
| - '.github/workflows/codeql.yml' | ||
| - '.github/codeql/**' | ||
| - '.github/dependabot.yml' | ||
| - '.github/CODEOWNERS' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-skip-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| all-tests-passed: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| statuses: write | ||
| steps: | ||
| - name: Mark all-tests-passed (no-op for non-runtime changes) | ||
| uses: myrotvorets/set-commit-status-action@master | ||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow or composite action Medium
Unpinned 3rd party Action 'Build & Test' step
Uses Step Error loading related location Loading |
||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| status: success | ||
| sha: ${{ github.event.pull_request.head.sha }} | ||
| context: "all-tests-passed" | ||
| description: "Skipped — PR only changes docs/workflow metadata" | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.