-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (29 loc) · 926 Bytes
/
lint_and_test.yml
File metadata and controls
38 lines (29 loc) · 926 Bytes
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: CI
on:
pull_request:
push:
branches:
- main
jobs:
lint_and_test:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Set up Rust toolchain
uses: hecrj/setup-rust-action@v2
with:
rust-version: stable
- name: Check out the code
uses: actions/checkout@v4
- name: Install Clippy
run: rustup component add clippy
- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Install cargo-nextest
run: cargo install cargo-nextest --locked
- name: Run tests with retries
env:
RUST_MIN_STACK: 8388608
# Retries configured in nextest.toml (no CLI override - P2P tests get 15 retries)
# --no-fail-fast: run all tests even when some fail, so we see full results
run: cargo nextest run --test-threads=1 --no-fail-fast