-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 963 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
on:
- push
- pull_request
jobs:
test-unit:
runs-on: ubuntu-latest
container: rust:1.64-alpine3.15
env:
CARGO_HOME: ${{ github.workspace }}/.cargo
steps:
- uses: actions/checkout@v3
- run: apk add tar
- uses: actions/cache@v3
with:
key: ${{ github.job }}-${{ hashFiles('Cargo.lock') }}
path: |
.cargo/
target/
- run: apk add build-base
- run: cargo test --all-targets
test-lint:
runs-on: ubuntu-latest
container: rust:1.64-alpine3.15
env:
CARGO_HOME: ${{ github.workspace }}/.cargo
steps:
- uses: actions/checkout@v3
- run: apk add tar
- uses: actions/cache@v3
with:
key: ${{ github.job }}-${{ hashFiles('Cargo.lock') }}
path: |
.cargo/
target/
- run: apk add musl-dev
- run: rustup component add clippy
- run: cargo clippy --all-targets