-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (35 loc) · 875 Bytes
/
test.yml
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
34
35
36
37
38
39
40
41
name: Run checks and tests
on:
workflow_dispatch:
push:
branches: [ main, develop, feature/gh-actions ]
pull_request:
branches: [ main, develop ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
if: ${{ !env.ACT }}
with:
submodules: recursive
- name: Cache build data
if: ${{ !env.ACT }}
uses: actions/cache@v2
with:
path: |
target
~/.cargo/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Fetch
run: cargo fetch
- name: Check
run: cargo check --all-features
- name: Lint
run: cargo clippy -- -D warnings
- name: Test
run : cargo test --all-features