Skip to content

Commit 3337fa5

Browse files
committed
ci: code cleanup
Code code cleanup based on latest codex checks
1 parent dd564f0 commit 3337fa5

13 files changed

Lines changed: 578 additions & 190 deletions

File tree

.github/workflows/codecov.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
coverage:
1414
runs-on: ubuntu-latest
1515
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
1618

1719
- name: Install ALSA development files
1820
run: sudo apt-get update && sudo apt-get install -y libasound2-dev
@@ -22,9 +24,6 @@ jobs:
2224
- name: Build and test
2325
run: cargo test --workspace --all-targets
2426

25-
- name: Checkout code
26-
uses: actions/checkout@v3
27-
2827
- name: Install grcov
2928
run: cargo install grcov
3029

.github/workflows/rust-clippy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ jobs:
4242
run: cargo install clippy-sarif sarif-fmt
4343

4444
- name: Run rust-clippy
45-
run:
46-
cargo clippy
47-
--all-features
48-
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
49-
continue-on-error: true
45+
run: |
46+
set -o pipefail
47+
cargo clippy \
48+
--all-targets \
49+
--all-features \
50+
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
5051
5152
- name: Upload analysis results to GitHub
5253
uses: github/codeql-action/upload-sarif@v3

Cargo.lock

Lines changed: 87 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ csv = "1.4.0"
1818

1919

2020
[dev-dependencies]
21+
assert_cmd = "2.2.1"
2122
serial_test = "3.4.0"
2223
tempfile = "3.27.0"

main.rs

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)