add test workflow (#9)

This commit is contained in:
Josh Thomas 2024-12-09 17:52:41 -06:00 committed by GitHub
parent f96b3da951
commit 0c230c361c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

26
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: test
on:
pull_request:
push:
branches: [main]
workflow_call:
concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose