Skip to content

Commit e5bdbfc

Browse files
authored
ci: use taiki-e/install-action to install tools from binary (#852)
1 parent 1c632b8 commit e5bdbfc

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/workflows/ci.yml

+15-6
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ jobs:
4646
- name: Check License Header
4747
uses: apache/skywalking-eyes/[email protected]
4848

49-
- name: Install cargo-sort
50-
run: make install-cargo-sort
51-
5249
- name: Install taplo-cli
53-
run: make install-taplo-cli
50+
uses: taiki-e/install-action@v2
51+
with:
52+
53+
- name: Check toml format
54+
run: make check-toml
5455

5556
- name: Cargo format
5657
run: make check-fmt
@@ -61,11 +62,19 @@ jobs:
6162
- name: Cargo clippy
6263
run: make check-clippy
6364

65+
- name: Install cargo-sort
66+
uses: taiki-e/install-action@v2
67+
with:
68+
6469
- name: Cargo sort
65-
run: make cargo-sort
70+
run: cargo sort -c -w
6671

72+
- name: Install cargo-machete
73+
uses: taiki-e/install-action@v2
74+
with:
75+
tool: cargo-machete
6776
- name: Cargo Machete
68-
run: make cargo-machete
77+
run: cargo machete
6978

7079
build:
7180
runs-on: ${{ matrix.os }}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cargo-machete: install-cargo-machete
3939
cargo machete
4040

4141
install-taplo-cli:
42-
cargo install [email protected].0
42+
cargo install [email protected].3
4343

4444
fix-toml: install-taplo-cli
4545
taplo fmt

0 commit comments

Comments
 (0)