-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (44 loc) · 1.17 KB
/
Copy pathci.yml
File metadata and controls
53 lines (44 loc) · 1.17 KB
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
51
52
53
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: ${{ matrix.service }} / check, test, clippy, audit
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
service:
- infinity-id
- infinity-observe
- infinity-data
- infinity-stream
defaults:
run:
working-directory: ${{ matrix.service }}
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache cargo registry and build artifacts
uses: Swatinem/rust-cache@v2
with:
workspaces: ${{ matrix.service }}
- name: cargo check
run: cargo check --workspace --all-targets
- name: cargo test
run: cargo test --workspace
- name: cargo clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: cargo audit
uses: rustsec/audit-check@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ${{ matrix.service }}