-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (35 loc) · 936 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
name: Test
on:
push:
branches: ["master"]
paths-ignore:
- "**/README.md"
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-09-29
components: rustfmt, clippy
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Check format
run: cargo +nightly-2023-09-29 fmt --all -- --check
- name: Check clippy
run: cargo +nightly-2023-09-29 clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run validate
run: cargo run -- validate