Skip to content

Add CI workflow

Add CI workflow #3

Workflow file for this run

name: Rust Tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run all checks
run: |
set -o pipefail
EXIT_CODE=0
echo "===== TESTS ====="
cargo test || EXIT_CODE=$?
echo "===== CHECK ====="
cargo check || EXIT_CODE=$?
echo "===== CLIPPY ====="
cargo clippy -- -D warnings || EXIT_CODE=$?
exit $EXIT_CODE