-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 803 Bytes
/
test.yml
File metadata and controls
33 lines (27 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Run tests
on: [push, pull_request]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: actions/checkout@v1
- name: Check formatting
uses: icepuma/rust-action@master
with:
args: cargo fmt -- --check
- name: Run tests
uses: icepuma/rust-action@master
with:
args: cargo test --workspace
- name: Check for clippy issues
uses: icepuma/rust-action@master
with:
args: cargo clippy --all-targets --workspace -- -Dwarnings