feat: add a test gh action
This commit is contained in:
parent
2f4e324be5
commit
aef41f2c18
1 changed files with 22 additions and 0 deletions
22
.github/workflows/test.yml
vendored
Normal file
22
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: cargo build
|
||||
working-directory: utils
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test
|
||||
working-directory: utils
|
||||
Loading…
Add table
Add a link
Reference in a new issue