forked from AcalaNetwork/subway
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 852 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
name: Test
on:
push:
branches: [ "alephzero" ]
paths-ignore:
- '**/README.md'
pull_request:
branches: [ "alephzero" ]
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-2024-02-09
components: rustfmt, clippy
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Check format
run: cargo +nightly-2024-02-09 fmt --all -- --check
- name: Check clippy
run: cargo +nightly-2024-02-09 clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose