Skip to content

regenerate family indexes after merging main into batch 13 #1537

regenerate family indexes after merging main into batch 13

regenerate family indexes after merging main into batch 13 #1537

Workflow file for this run

name: gates
on:
push:
branches: ["**"]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: gates-${{ github.ref }}
cancel-in-progress: true
jobs:
structure:
name: structure and prose
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- name: Structural validator tests
run: python3 tools/check-structure-test.py
- name: Structural gate
run: python3 tools/check-structure.py
- name: Family naming validator tests
run: python3 tools/check-family-names-test.py
- name: Family folder naming gate
run: python3 tools/check-family-names.py
- name: Prose gate
run: python3 tools/check-prose.py
- name: Indexes are current
run: |
python3 tools/gen-indexes.py
git diff --exit-code -- patterns || {
echo "Family indexes are stale. Run tools/gen-indexes.py and commit."
exit 1
}
- name: Discovery pathway generator tests
run: python3 tools/gen-by-problem-by-language-test.py
- name: Discovery pathway indexes are current
run: |
python3 tools/gen-by-problem-by-language.py
git diff --exit-code -- docs/BY-PROBLEM.md docs/BY-LANGUAGE.md || {
echo "Discovery pathway indexes are stale. Run tools/gen-by-problem-by-language.py and commit."
exit 1
}
- name: Catalogue status generator tests
run: python3 tools/gen-catalogue-status-test.py
- name: Catalogue status is current
run: |
python3 tools/gen-catalogue-status.py
git diff --exit-code -- README.md docs/PROGRESS.md dist/ || {
echo "Catalogue status is stale. Run tools/gen-catalogue-status.py and commit."
exit 1
}
code:
name: code samples compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: temurin
java-version: "21"
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: "1.23"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "22"
- name: Rust toolchain
run: rustup toolchain install stable --profile minimal --no-self-update
- name: Compile every sample
run: python3 tools/check-code.py --strict
citations:
name: citations resolve
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- name: Probe every cited URL
run: python3 tools/validate-refs.py --strict --timeout 25
markdown:
name: markdown style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "22"
- name: markdownlint-cli2
run: npx --yes markdownlint-cli2@0.23.2
claims:
name: claim check
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- name: Fetch main for comparison
run: git fetch origin main --depth=200
- name: No two contributors on the same entry
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }} # BESTPRACTICE_OK: numeric field via env, never inlined into run:
BASE_SHA: origin/main
run: python3 tools/check-claims.py
security:
name: PR security check
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- name: Install gitleaks
run: |
mkdir -p "$RUNNER_TEMP/bin"
curl -sSL -o gitleaks.tar.gz https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_x64.tar.gz
echo "551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb gitleaks.tar.gz" > gitleaks.sha256
sha256sum -c gitleaks.sha256 || { echo "gitleaks checksum mismatch, refusing to run an unverified binary"; exit 1; }
tar -xzf gitleaks.tar.gz gitleaks
mv gitleaks "$RUNNER_TEMP/bin/gitleaks"
echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH"
- name: No secrets, unreviewed infra changes blocked
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }} # BESTPRACTICE_OK: numeric field via env, never inlined into run:
BASE_SHA: ${{ github.event.pull_request.base.sha }} # BESTPRACTICE_OK: commit SHA via env, never inlined into run:
run: python3 tools/check-pr-security.py