-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (37 loc) · 865 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
42
43
44
name: Rust Test
on:
push:
branches: ["main"]
paths:
- ahnlich/**
pull_request:
branches: ["main"]
paths:
- ahnlich/**
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: ahnlich
- name: Set up cargo and rustup tools
run: |
which cargo-nextest || cargo install cargo-nextest
- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('ahnlich/Cargo.lock') }}
- name: Format and Lint
working-directory: ./ahnlich
run: |
make format
make clippy
- name: Run Test
working-directory: ./ahnlich
run: |
make test