Skip to content

Commit

Permalink
ci: use taiki-e/install-action to install tools from binary (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxchan authored Jan 4, 2025
1 parent 1c632b8 commit e5bdbfc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ jobs:
- name: Check License Header
uses: apache/skywalking-eyes/[email protected]

- name: Install cargo-sort
run: make install-cargo-sort

- name: Install taplo-cli
run: make install-taplo-cli
uses: taiki-e/install-action@v2
with:
tool: [email protected]
- name: Check toml format
run: make check-toml

- name: Cargo format
run: make check-fmt
Expand All @@ -61,11 +62,19 @@ jobs:
- name: Cargo clippy
run: make check-clippy

- name: Install cargo-sort
uses: taiki-e/install-action@v2
with:
tool: [email protected]
- name: Cargo sort
run: make cargo-sort
run: cargo sort -c -w

- name: Install cargo-machete
uses: taiki-e/install-action@v2
with:
tool: cargo-machete
- name: Cargo Machete
run: make cargo-machete
run: cargo machete

build:
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cargo-machete: install-cargo-machete
cargo machete

install-taplo-cli:
cargo install [email protected].0
cargo install [email protected].3

fix-toml: install-taplo-cli
taplo fmt
Expand Down

0 comments on commit e5bdbfc

Please sign in to comment.