Repository navigation
Run actions-qa-ci on pull requests and skip docs-only pushes - #1
Merged
Merged
Conversation
Add an actions-qa-ci workflow, triggered on pull_request only: every existing workflow is push-only, and adding pull_request to one of them would run that language lane twice for each pull request push. Every language workflow now ignores pushes that change only Markdown or docs/ (no lane reads Markdown), and shares one concurrency group per workflow and ref, cancelling a superseded run. The two YAML-lane fixture workflows are declared unanalysed in .github/actions-qa-ci.yml: they are data for the lane's actionlint step and GitHub never runs them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
CI is red on one job only: the 🤖 Generated with Claude Code |
…i-adoption Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What this adopts
actions-qa-ci v0.2.0 runs on every pull request, in a new
.github/workflows/actions-qa-ci.yml:pull_requestonly, withpermissions: contents: read, onubuntu-latest;It is a new workflow rather than a job in an existing one: every workflow here is
on: [push, workflow_dispatch], and addingpull_requestto one of them would run that language lane twice for each pull request push.Findings and fixes
actionsqaci.docsOnlyPushpush.paths-ignore: ["**.md", "docs/**"]. No lane reads Markdown:ci/run-language.bashruns each<lang>/qa.bashover<lang>/passand<lang>/fail/*, none of which holds a.mdfile, andexamples/is not run by CI.actionsqaci.pushConcurrencyconcurrency: {group: "${{ github.workflow }}-${{ github.ref }}", cancel-in-progress: true}. These are QA runs that publish nothing, so a superseded run can be cancelled.actionsqaci.lintCoverageyaml/fail/analyse-workflow/workflows/hello.yml,yaml/pass/workflows/hello.ymlanalyse.unanalysedin.github/actions-qa-ci.yml. They are YAML-lane fixtures (one deliberately broken), kept as data for that lane's actionlint step, and GitHub never runs them.workflow_dispatchis kept on every language workflow, so any lane can still be run by hand. No branch protection or ruleset makes a language job a required check, so the push filter cannot leave a pull request waiting.actions-qa checkexits 0 locally with v0.2.0, the newest release when this was pushed. The action is pinned toad81f5c1…, the v0.2.0 commit.The
rustlane's earlier red came from dylint'smasterclone, not from this change. #2 fixed it onmain, and this branch mergesmain.Note
This repository has had no pull requests until now; its branches are merged locally. The actions-qa-ci job only runs when a pull request is opened.
🤖 Generated with Claude Code