Skip to content

Commit a517ced

Browse files
Use action in some of test.yml
1 parent df24bf5 commit a517ced

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ jobs:
3434
needs: changes
3535
steps:
3636
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37-
- name: Enable Rust matcher
38-
run: echo "::add-matcher::.github/matchers/rust.json"
37+
- uses: ./.github/actions/setup
38+
with:
39+
rust: true
3940
- run: make check-fmt
4041

4142
check-clippy:
@@ -45,8 +46,9 @@ jobs:
4546
needs: changes
4647
steps:
4748
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48-
- name: Enable Rust matcher
49-
run: echo "::add-matcher::.github/matchers/rust.json"
49+
- uses: ./.github/actions/setup
50+
with:
51+
rust: true
5052
- run: sudo bash ./scripts/environment/install-protoc.sh
5153
- run: sudo apt-get update && sudo apt-get install -y libsasl2-dev
5254
- run: make check-clippy
@@ -58,11 +60,11 @@ jobs:
5860
needs: changes
5961
steps:
6062
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
61-
- name: Enable Rust matcher
62-
run: echo "::add-matcher::.github/matchers/rust.json"
63-
- run: sudo -E bash scripts/environment/bootstrap-ubuntu-24.04.sh
64-
- run: bash ./scripts/environment/prepare.sh --modules=cargo-nextest,datadog-ci
65-
63+
- uses: ./.github/actions/setup
64+
with:
65+
rust: true
66+
cargo-nextest: true
67+
datadog-ci: true
6668
- name: Unit Test
6769
run: make test
6870
env:

0 commit comments

Comments
 (0)