-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (32 loc) · 967 Bytes
/
check.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
name: Check
on:
pull_request:
push:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
- uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.SSH_KEY_POOL }}
- name: Check all tests
run: cargo test
- name: Clippy with features
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Install Nightly
run: rustup toolchain install nightly
- name: Add nightly toolchain for rustfmt
run: rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
- name: Check format
run: cargo +nightly fmt --verbose --all -- --check
- name: Install llvm-cov tool for cargo
run: cargo +stable install cargo-llvm-cov --locked
- name: Code coverage
run: cargo llvm-cov