Skip to content

Commit caa6723

Browse files
committed
fix(coprocessor): listener ci, fmt, clippy, tests
1 parent 4a764d1 commit caa6723

File tree

4 files changed

+17
-89
lines changed

4 files changed

+17
-89
lines changed

listener/.github/workflows/clippy.yml renamed to .github/workflows/listener-cargo-fmt-clippy.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cargo-clippy
1+
name: listener-cargo-fmt-clippy
22

33
on:
44
push:
@@ -13,7 +13,6 @@ concurrency:
1313

1414
jobs:
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:
@@ -50,9 +47,10 @@ jobs:
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:
@@ -62,6 +60,9 @@ jobs:
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
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cargo-test
1+
name: listener-tests
22

33
on:
44
push:
@@ -13,7 +13,6 @@ concurrency:
1313

1414
jobs:
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:
@@ -50,7 +47,9 @@ jobs:
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:
@@ -61,3 +60,4 @@ jobs:
6160
restore-keys: ${{ runner.os }}-cargo-test-
6261

6362
- run: make test
63+
working-directory: listener

listener/.github/actions/setup-rust/action.yml

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

listener/.github/workflows/fmt.yml

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

0 commit comments

Comments
 (0)