Skip to content

Report which build this is, not just which release it followed #5

Report which build this is, not just which release it followed

Report which build this is, not just which release it followed #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
CARGO_TERM_COLOR: always
jobs:
# Each gate is its own job so a failure names itself, and so a formatting slip
# doesn't hide a test failure behind it.
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# `rustup show` installs whatever rust-toolchain.toml pins, so CI and a
# developer's machine format and lint with the same compiler.
- run: rustup show
# The recipes are the justfile's, so CI and a developer's machine run the
# same command rather than two spellings of one that can drift.
- uses: taiki-e/install-action@just
- run: just fmt-check
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup show
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@just
- run: just lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup show
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@just
- run: just test
purity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup show
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@just
- run: just purity