mirror of
https://github.com/redwoodjs/local-ci.git
synced 2026-09-19 07:54:29 +08:00
37f98a6c37
Closes #297. CI/scripts-only — no packages/ change, so no changeset required per .claude/rules/changeset-required.md. - scripts/diff-parse.ts: walks raw YAML at workflow + job scopes (in addition to the existing step scope) and grades every recognized key against a preservation predicate or a documented expected-drop. Reuses focused parsers (parseJobIf, parseJobOutputDefs, parseWorkflowContainer, parseWorkflowServices, parseMatrixDef, parseFailFast, parseJobDependencies, getWorkflowTemplate). defaults.run.shell preservation detects the heredoc-wrap marker emitted by wrapScriptForShell. - third-party-workflows/: vendored scan-only corpus — turborepo-lint.yml, playwright-infra.yml, docker-validate.yml — each with attribution header. Picked up automatically by collectWorkflowFiles. - package.json: parse:diff added to the parallel pnpm check pipeline so regressions fail standard CI. Result: 37 workflows scanned (.github/workflows + third-party-workflows), 0 drifts. pnpm check exits 0; pnpm agent-ci-dev run --all reports 39/39. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
# Vendored from docker/build-push-action @ master:.github/workflows/validate.yml
|
|
# Source: https://github.com/docker/build-push-action
|
|
# License: Apache-2.0 — see docker/build-push-action/LICENSE
|
|
#
|
|
# Used by `pnpm parse:diff` to widen differential-parse coverage beyond our
|
|
# own smokes. Not executed — scan-only.
|
|
|
|
name: validate
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
- "releases/v*"
|
|
pull_request:
|
|
|
|
jobs:
|
|
prepare:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.generate.outputs.matrix }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: Generate matrix
|
|
id: generate
|
|
uses: docker/bake-action/subaction/matrix@a66e1c87e2eca0503c343edf1d208c716d54b8a8 # v7.1.0
|
|
with:
|
|
target: validate
|
|
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- prepare
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include: ${{ fromJson(needs.prepare.outputs.matrix) }}
|
|
steps:
|
|
- name: Validate
|
|
uses: docker/bake-action@a66e1c87e2eca0503c343edf1d208c716d54b8a8 # v7.1.0
|
|
with:
|
|
targets: ${{ matrix.target }}
|