-
-
Notifications
You must be signed in to change notification settings - Fork 52
38 lines (36 loc) · 873 Bytes
/
ci.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
name: Verify rust/main
on:
pull_request:
branches:
- rust/main
push:
branches:
- rust/main
jobs:
lint-and-test:
name: Lint and test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Install just
uses: extractions/setup-just@v1
with:
just-version: 1.35.0
- name: Check cargo
run: just check-cargo
- name: Lint formatting
run: just check-formatting
- name: Lint clippy
run: just check-clippy
- name: Cargo test
run: just test