-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (36 loc) · 1.09 KB
/
test.yaml
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: "Test the Rust code"
on:
push:
branches: ["latest"]
paths:
- src/**.rs
- Cargo.toml
- Cargo.lock
- .github/workflows/test.yaml
pull_request:
branches: ["latest"]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: get cargo-nextest on path
run: |
curl -sL https://get.nexte.st/latest/linux -o nextest.tgz
tar xfz nextest.tgz
mv cargo-nextest /home/runner/.cargo/bin
- name: run the tests
run: cargo nextest run -E 'not test(/.*pack_complete/)'