name: Build & Test
on:
push:
branches:
- main
paths:
- '**.rs'
- 'Cargo.lock'
- 'Cargo.toml'
- 'src/**'
pull_request:
branches:
- main
paths:
- '**.rs'
- 'Cargo.lock'
- 'Cargo.toml'
- 'src/**'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
os:
- ubuntu
- windows
runs-on: ${{ matrix.os }}-latest
name: test-${{ matrix.os }}
env:
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v4
name: Checkout Repository ๐ฅ
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0
name: Set up Cache
- run: cargo check --verbose
name: Check ๐
- run: cargo build --verbose
name: Build ๐จ
- run: cargo test --verbose
name: Run Tests ๐งช