File tree Expand file tree Collapse file tree 4 files changed +17
-89
lines changed
Expand file tree Collapse file tree 4 files changed +17
-89
lines changed Original file line number Diff line number Diff line change 1- name : cargo-clippy
1+ name : listener- cargo-fmt -clippy
22
33on :
44 push :
@@ -13,7 +13,6 @@ concurrency:
1313
1414jobs :
1515 check-changes :
16- name : cargo-clippy/check-changes
1716 permissions :
1817 actions : ' read'
1918 contents : ' read'
@@ -32,14 +31,12 @@ jobs:
3231 with :
3332 filters : |
3433 rust:
35- - .github/actions/setup-rust/**
36- - .github/workflows/clippy.yml
34+ - .github/workflows/listener-cargo-fmt-clippy.yml
3735 - Cargo.toml
3836 - Cargo.lock
39- - crates/**
37+ - listener/ crates/**
4038
41- clippy :
42- name : cargo-clippy/run
39+ fmt-clippy :
4340 needs : check-changes
4441 if : ${{ needs.check-changes.outputs.rust-changed == 'true' }}
4542 permissions :
5047 with :
5148 persist-credentials : ' false'
5249
53- - uses : ./.github/actions/setup- rust
50+ - uses : dtolnay/ rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203
5451 with :
55- components : clippy
52+ toolchain : 1.91.1
53+ components : rustfmt, clippy
5654
5755 - uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
5856 with :
6260 key : ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
6361 restore-keys : ${{ runner.os }}-cargo-clippy-
6462
63+ - run : cargo fmt --check
64+
6565 - run : >
6666 cargo clippy --workspace --all-targets
6767 -- -W clippy::perf -W clippy::suspicious -W clippy::style -D warnings
68+ working-directory: listener
Original file line number Diff line number Diff line change 1- name : cargo-test
1+ name : listener-tests
22
33on :
44 push :
@@ -13,7 +13,6 @@ concurrency:
1313
1414jobs :
1515 check-changes :
16- name : cargo-test/check-changes
1716 permissions :
1817 actions : ' read'
1918 contents : ' read'
@@ -32,14 +31,12 @@ jobs:
3231 with :
3332 filters : |
3433 rust:
35- - .github/actions/setup-rust/**
36- - .github/workflows/tests.yml
34+ - .github/workflows/listener-tests.yml
3735 - Cargo.toml
3836 - Cargo.lock
39- - crates/**
37+ - listener/ crates/**
4038
4139 tests :
42- name : cargo-test/run
4340 needs : check-changes
4441 if : ${{ needs.check-changes.outputs.rust-changed == 'true' }}
4542 permissions :
5047 with :
5148 persist-credentials : ' false'
5249
53- - uses : ./.github/actions/setup-rust
50+ - uses : dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203
51+ with :
52+ toolchain : 1.91.1
5453
5554 - uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
5655 with :
6160 restore-keys : ${{ runner.os }}-cargo-test-
6261
6362 - run : make test
63+ working-directory : listener
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments