Repository navigation
ci: run actions-qa-ci on pull requests, skip docs-only pushes - #2
Merged
Merged
Conversation
Add an actions-qa-ci job to the PHP QA workflow, run on pull requests only, with contents: read on ubuntu-latest. A push that changes only Markdown or docs/ no longer runs the workflow: nothing in the build reads Markdown. Instruction Markdown stays in. The workflow gets a concurrency group per ref; only a superseded pull request run is cancelled, so a push run that commits fixer output is never cut short. Actions move to their current majors: actions/checkout v2 -> v7 (v2's runtime no longer runs on GitHub), ramsey/composer-install v1 -> v4. EndBug/add-and-commit stays on v7: v8 stopped switching to the pull request's head branch, which would break the fixer commit-back on pull request runs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
An
actions-qa-cijob in the existingPHP QAworkflow (.github/workflows/main.yml), pinned toLongTermSupport/actions-qa-civ0.2.0 (the newest release) by commit. It runs onpull_requestonly, onubuntu-latest, withpermissions: contents: read. It checks this repository's workflows for actionlint, shellcheck and CI-cost rules.Findings and fixes
docs/ran the full QA. The push trigger now has apathsfilter that leaves those out and keeps instruction Markdown in (**/CLAUDE.md,**/AGENTS.md). The only Markdown here isREADME.md, and nothing in the build reads it. Pull requests are not path-filtered.action.actions/checkout@v2, whose runtime GitHub no longer runs, moves to@v7.Also bumped to its current major:
ramsey/composer-installv1tov4, used with no inputs.EndBug/add-and-commitdeliberately stays onv7. Fromv8it commits on whatever ref is checked out instead of switching to the pull request's head branch, so the fixer commit-back would break on pull request runs.actions-qa checkexits 0 locally.Baseline
This repository has no Actions run on record, so this PR's
QArun is the first one in the available history. If it fails inci.bash(PHP 8.0 and the pinned dependencies), that failure predates this change.🤖 Generated with Claude Code