Skip to content

build(deps): Bump actions/cache from 5 to 6 #297

build(deps): Bump actions/cache from 5 to 6

build(deps): Bump actions/cache from 5 to 6 #297

Workflow file for this run

name: PR Fast CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: pr-fast-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
env:
NODE_VERSION: '20'
PYTHON_VERSION: '3.12'
SHELL: /bin/bash
defaults:
run:
shell: bash
jobs:
changes:
name: Detect Relevant Changes
runs-on:
- self-hosted
- linux
- shell-only
- public
outputs:
app: ${{ steps.filter.outputs.app }}
ci: ${{ steps.filter.outputs.ci }}
steps:
- uses: dorny/paths-filter@v4
id: filter
with:
filters: |
app:
- 'project.bootstrap.yaml'
- 'AGENTS.md'
- 'CLAUDE.md'
- '.devcontainer/**'
- '.githooks/**'
- '.github/workflows/**'
- 'scripts/**'
- 'docs/bootstrap/**'
- 'README.md'
- 'docs/**'
ci:
- 'project.bootstrap.yaml'
- 'AGENTS.md'
- 'CLAUDE.md'
- '.devcontainer/**'
- '.githooks/**'
- '.github/workflows/**'
- 'scripts/**'
- 'docs/bootstrap/**'
- '.env.example'
- 'CODEOWNERS'
fast-checks:
name: Fast Checks
runs-on:
- self-hosted
- linux
- shell-only
- public
timeout-minutes: 15
needs: changes
if: >-
github.event.pull_request.draft == false &&
github.event.pull_request.head.repo.full_name == github.repository &&
(needs.changes.outputs.app == 'true' || needs.changes.outputs.ci == 'true')
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./actions/setup-shell-safe-node
with:
node-version: 24.14.1
- uses: pnpm/action-setup@v6
with:
version: 10.32.1
- name: Run fast checks
run: bash scripts/ci/run-fast-checks.sh
validate-secrets:
name: Validate Secrets
runs-on:
- self-hosted
- linux
- shell-only
- public
timeout-minutes: 10
if: >-
github.event.pull_request.draft == false &&
github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Scan repository for secret patterns
run: bash scripts/check-detect-secrets.sh --all-files
hosted-fork-fast-checks:
name: Hosted Fork Fast Checks
runs-on: ubuntu-latest
timeout-minutes: 15
needs: changes
if: >-
github.event.pull_request.draft == false &&
github.event.pull_request.head.repo.full_name != github.repository &&
(needs.changes.outputs.app == 'true' || needs.changes.outputs.ci == 'true')
steps:
- uses: actions/checkout@v7
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v6
with:
node-version: "24"
- uses: pnpm/action-setup@v6
with:
version: 10.32.1
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm test
- run: pnpm build
hosted-fork-validate-secrets:
name: Hosted Fork Validate Secrets
runs-on: ubuntu-latest
timeout-minutes: 10
if: >-
github.event.pull_request.draft == false &&
github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v7
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Scan repository for secret patterns
run: bash scripts/check-detect-secrets.sh --all-files
ci-gate:
name: CI Gate
runs-on:
- self-hosted
- linux
- shell-only
- public
if: always()
needs:
- changes
- fast-checks
- validate-secrets
- hosted-fork-fast-checks
- hosted-fork-validate-secrets
steps:
- name: Check required PR jobs
env:
RESULTS: >-
changes=${{ needs.changes.result }}
fast-checks=${{ needs.fast-checks.result }}
validate-secrets=${{ needs.validate-secrets.result }}
hosted-fork-fast-checks=${{ needs.hosted-fork-fast-checks.result }}
hosted-fork-validate-secrets=${{ needs.hosted-fork-validate-secrets.result }}
run: |
failed=0
for entry in $RESULTS; do
job="${entry%%=*}"
status="${entry##*=}"
if [[ "$status" == "success" || "$status" == "skipped" ]]; then
echo "OK $job => $status"
else
echo "FAIL $job => $status"
failed=1
fi
done
exit "$failed"