Add cargo test to github actions

This commit is contained in:
Andrew Morris
2023-03-01 08:21:18 +11:00
parent bc1afa24c4
commit 0085b1e50e

17
.github/workflows/cargo-test.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Cargo Test
on: [push, pull_request]
jobs:
test:
name: Run cargo test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run cargo test
run: cargo test