main
yml 36 lines 871 Bytes
Raw
1 name: CI
2
3 on:
4 push:
5 branches: [ "main" ]
6 pull_request:
7 branches: [ "main" ]
8
9 env:
10 CARGO_TERM_COLOR: always
11
12 jobs:
13 ci:
14 name: CI
15 runs-on: ubuntu-latest
16 steps:
17 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18
19 - name: Setup SSH keys for private crates
20 uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0
21 with:
22 ssh-private-key: ${{ secrets.WARP_MACHINE_USER_SSH_PRIVATE_KEY }}
23
24 - name: Run cargo fmt
25 run: cargo fmt --check
26
27 - name: Run cargo clippy
28 run: cargo clippy --all-targets --all-features -- -D warnings
29
30 - name: Install cargo nextest
31 uses: taiki-e/install-action@055f5df8c3f65ea01cd41e9dc855becd88953486 # v2.75.18
32 with:
33 tool: nextest
34
35 - name: Run tests
36 run: cargo nextest run --workspace --no-tests=warn