-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (72 loc) · 2.39 KB
/
Copy pathmain_base.yml
File metadata and controls
89 lines (72 loc) · 2.39 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
name: CI checks
on:
workflow_call:
inputs:
toolchain:
required: true
type: string
jobs:
cla-assistant:
if: |
(github.event.pull_request.head.repo.full_name != github.repository)
&& ((github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA')
|| github.event_name == 'pull_request_target')
uses: ./.github/workflows/cla.yml
secrets: inherit
cargo-deny:
name: Security Audit
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Install cargo-deny
run: cargo install --locked cargo-deny
- name: Run cargo-deny check
run: cargo deny --log-level warn --all-features check
cargo-machete:
uses: Cosmian/reusable_workflows/.github/workflows/cargo-machete.yml@develop
with:
toolchain: ${{ inputs.toolchain }}
cargo-clippy:
name: Cargo test - ${{ matrix.runner }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner: [ubuntu-24.04, ubuntu-24.04-arm, macos-15]
steps:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ inputs.toolchain }}
components: rustfmt, clippy
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Run unit tests
run: cargo fmt --all -- --check --color always
- name: Static analysis
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Static analysis all features
run: cargo clippy --workspace --all-targets --no-default-features --features database,rustls -- -D warnings
- name: Static analysis openssl backend
run: cargo clippy --workspace --all-targets --no-default-features --features database,openssl -- -D warnings
cargo-test:
name: Cargo test - ${{ matrix.runner }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner: [ubuntu-24.04, ubuntu-24.04-arm, macos-15]
steps:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ inputs.toolchain }}
components: rustfmt, clippy
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Run unit tests
run: |
cargo test --workspace --lib -- --nocapture