-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.19 KB
/
ci.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
42
43
44
45
46
47
48
on:
workflow_dispatch:
pull_request:
push:
paths-ignore:
- .github
- config.toml
- Dockerfile
- justfile
- README.md
name: Test and Build
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
rust-toolchain: [stable]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: extractions/setup-just@v1
- name: Checkout code
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-toolchain }}
profile: minimal
components: rustfmt,clippy
override: true
- uses: rui314/setup-mold@v1
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
- name: Install cargo-nextest
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-nextest
- name: Build code
run: just build
- name: Lint code
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -W clippy::all
- name: Test code
run: cargo nextest run --all-targets --test-threads=1