-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (47 loc) · 1.32 KB
/
on_pull_request.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
45
46
47
48
49
50
name: "Check PR is ready for merge"
on:
pull_request:
branches:
- master
# TODO: beefy machine for tests
jobs:
lint:
name: "Lint"
runs-on:
group: ubuntu-22.04-8core
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- name: "Check rust format"
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
test-rust:
name: "Test Rust"
runs-on:
group: ubuntu-22.04-16core
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- name: "Install cargo-nextest"
run: cargo install cargo-nextest
- name: "Run tests"
run: cargo nextest run --workspace --locked --no-default-features
test-beefy-proofs:
name: "Test Beefy Proofs"
runs-on:
group: beefygroup
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- name: "Install cargo-nextest"
run: cargo install cargo-nextest
- name: "Run tests"
run: cargo nextest run --workspace --locked --no-default-features