document configured external runners #350
Workflow file for this run
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
| name: Test | |
| on: | |
| pull_request: | |
| # Cancel in-progress runs for the same PR to save resources | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| # Minimal permissions for testing | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| env: | |
| MDBOOK_VERSION: 0.5.1 | |
| MDBOOK_OUTPUT__LINKCHECK__WARNING_POLICY: error | |
| RUN_BLACKSMITH: 1 | |
| steps: | |
| # Checkout repository without persisting credentials to reduce attack surface | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Install mdbook | |
| run: curl -sSL https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz | tar -xz | |
| - name: Install mdbook-linkcheck2 | |
| run: cargo install mdbook-linkcheck2@0.12.0 --locked | |
| - name: Check blacksmith format | |
| run: cargo fmt --check --manifest-path=blacksmith/Cargo.toml | |
| - name: Build book | |
| run: ./mdbook build |