Skip to content

document configured external runners #350

document configured external runners

document configured external runners #350

Workflow file for this run

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