fix(ci): reduce GitHub Actions minutes ~60-70% (~10k → ~3-4k/month) (#1552)
- Remove feat/** push trigger (PRs already cover feature branches) - Add concurrency groups with cancel-in-progress to kill stale runs - Add paths-ignore for docs/markdown/license/unrelated workflow changes - Consolidate secret-scan, no-gsd-dir, skill-references into single lint job - Restrict Windows runner (2x minute multiplier) to main push only Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1bd53a4c87
commit
ebd2408ffc
1 changed files with 25 additions and 10 deletions
35
.github/workflows/ci.yml
vendored
35
.github/workflows/ci.yml
vendored
|
|
@ -2,24 +2,41 @@ name: CI
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [main, feat/**]
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- 'docs/**'
|
||||
- '.github/workflows/ai-triage.yml'
|
||||
- '.github/workflows/build-native.yml'
|
||||
- '.github/workflows/cleanup-dev-versions.yml'
|
||||
- '.github/workflows/pipeline.yml'
|
||||
- 'LICENSE'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- 'docs/**'
|
||||
- '.github/workflows/ai-triage.yml'
|
||||
- '.github/workflows/build-native.yml'
|
||||
- '.github/workflows/cleanup-dev-versions.yml'
|
||||
- '.github/workflows/pipeline.yml'
|
||||
- 'LICENSE'
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
secret-scan:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Scan for hardcoded secrets
|
||||
run: bash scripts/secret-scan.sh --diff origin/main
|
||||
|
||||
no-gsd-dir:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Ensure .gsd/ is not checked in
|
||||
run: |
|
||||
if [ -d ".gsd" ]; then
|
||||
|
|
@ -27,14 +44,11 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
skill-references:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '24'
|
||||
|
||||
- name: Validate skill references
|
||||
run: node scripts/check-skill-references.mjs
|
||||
|
||||
|
|
@ -72,6 +86,7 @@ jobs:
|
|||
run: npm run test:integration
|
||||
|
||||
windows-portability:
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue