forked from Alzymologist/substrate-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.21 KB
/
rust-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:
pull_request:
push:
branches:
- main
- stable
jobs:
check:
name: Cargo test
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout sources
uses: actions/[email protected]
with:
fetch-depth: 50
submodules: 'recursive'
- name: Install Rust stable toolchain
uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
override: true
- name: Install cargo-nextest
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-nextest
version: 0.9
- name: Rust Cache
uses: Swatinem/[email protected]
- name: cargo nextest
run: cargo nextest run