Skip to content

ci: add GitHub Actions workflow to run unit tests on push/PR #1

ci: add GitHub Actions workflow to run unit tests on push/PR

ci: add GitHub Actions workflow to run unit tests on push/PR #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --lib --tests --examples
- name: Test (debug)
run: cargo test --lib
- name: Test (release)
run: cargo test --lib --release
- name: Clippy
run: cargo clippy --lib --tests