-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (28 loc) · 870 Bytes
/
ci.yml
File metadata and controls
36 lines (28 loc) · 870 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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup SSH keys for private crates
uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0
with:
ssh-private-key: ${{ secrets.WARP_MACHINE_USER_SSH_PRIVATE_KEY }}
- name: Run cargo fmt
run: cargo fmt --check
- name: Run cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Install cargo nextest
uses: taiki-e/install-action@711e1c3275189d76dcc4d34ddea63bf96ac49090 # v2.76.0
with:
tool: nextest
- name: Run tests
run: cargo nextest run --workspace --no-tests=warn