Skip to content

Merge pull request #76 from orbitinghail/renovate/actions-checkout-6.x #268

Merge pull request #76 from orbitinghail/renovate/actions-checkout-6.x

Merge pull request #76 from orbitinghail/renovate/actions-checkout-6.x #268

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
with:
toolchain: stable
components: clippy, rustfmt
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
with:
token: ${{secrets.GITHUB_TOKEN}}
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
- name: Install Nextest
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C /usr/local/bin
- name: Build
run: cargo build
- name: Test
run: cargo nextest run --benches
- name: Clippy
uses: auguwu/clippy-action@94a9ff2f6920180b89e5c03d121d0af04a9d3e03 # 1.4.0
with:
token: ${{secrets.GITHUB_TOKEN}}
- name: Cargo fmt
run: cargo fmt --check
- name: Cargo doctests
run: cargo test --doc