-38
.github/workflows/continuous-integration.yaml
-38
.github/workflows/continuous-integration.yaml
···
1
-
name: Continuous Integration
2
-
on:
3
-
- push
4
-
- pull_request
5
-
6
-
jobs:
7
-
unit-tests:
8
-
runs-on: ubuntu-latest
9
-
steps:
10
-
- uses: actions/checkout@v4
11
-
- name: Run unit tests
12
-
run: cargo test --all-targets --all-features
13
-
14
-
clippy-check:
15
-
runs-on: ubuntu-latest
16
-
env:
17
-
RUSTFLAGS: "-Dwarnings"
18
-
steps:
19
-
- uses: actions/checkout@v4
20
-
- name: Run Clippy
21
-
run: cargo clippy --all-targets --all-features
22
-
23
-
cargo-deny:
24
-
runs-on: ubuntu-latest
25
-
strategy:
26
-
matrix:
27
-
checks:
28
-
- advisories
29
-
- bans licenses sources
30
-
31
-
# Prevent sudden announcement of a new advisory from failing ci:
32
-
continue-on-error: ${{ matrix.checks == 'advisories' }}
33
-
34
-
steps:
35
-
- uses: actions/checkout@v4
36
-
- uses: EmbarkStudios/cargo-deny-action@v2
37
-
with:
38
-
command: check ${{ matrix.checks }}
+19
.tangled/workflows/clippy.yaml
+19
.tangled/workflows/clippy.yaml
···
1
+
when:
2
+
- event:
3
+
- push
4
+
- pull_request
5
+
branch:
6
+
- main
7
+
8
+
engine: nixery
9
+
10
+
dependencies:
11
+
nixpkgs:
12
+
- cargo
13
+
14
+
steps:
15
+
- name: run clippy
16
+
environment:
17
+
RUSTFLAGS: "-Dwarnings"
18
+
command: |
19
+
cargo clippy --all-targets --all-features