Skip to content

Merge pull request #261 from umccr/release-plz-2024-09-06T09-38-53Z #282

Merge pull request #261 from umccr/release-plz-2024-09-06T09-38-53Z

Merge pull request #261 from umccr/release-plz-2024-09-06T09-38-53Z #282

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
strategy:
matrix:
rust: [stable]
os: [ubuntu-latest]
steps:
- name: Cache
uses: mozilla-actions/sccache-action@v0.0.5
- name: Check out
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
id: toolchain
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- run: rustup override set ${{ steps.toolchain.outputs.name }}
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run cargo tests
run: cargo test --all-features
- name: Run cargo tests with no default features
run: cargo test --no-default-features