Skip to content

feat: nixify runrs (#12) #48

feat: nixify runrs (#12)

feat: nixify runrs (#12) #48

Workflow file for this run

name: CI
on:
push:
branches: ["trunk"]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --check --all
- run: cargo clippy --all-targets -- -D warnings -D clippy::all
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- run: cargo nextest run --cargo-profile release
env:
RUST_BACKTRACE: 1
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: crate-ci/[email protected]
docker:
runs-on: ubuntu-latest
needs: [lint, test, typos]
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build .#runrs-docker-image