-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1004 Bytes
/
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
on:
- push
- pull_request
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
timeout-minutes: 1
continue-on-error: true
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('Cargo.lock') }}
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install just
uses: taiki-e/install-action@just
- name: Test
env:
RUSTFLAGS: '-D warnings'
RUSTDOCFLAGS: '-D warnings'
run: just all