Skip to content

Add Github CI test gate #83

Add Github CI test gate

Add Github CI test gate #83

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Install cargo tools
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest,cargo-deny,ratchets@0.2.4
- name: Check formatting
run: cargo fmt --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --all-targets
- name: Check dependencies
run: cargo deny check
- name: Check code quality (ratchets)
run: ratchets check
- name: Run tests
run: cargo nextest run