Skip to content

Commit

Permalink
ci: add machete and use full name cargo-nextest.
Browse files Browse the repository at this point in the history
  • Loading branch information
saying121 committed Aug 25, 2024
1 parent 952a2e1 commit 774b59e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check

on:
push:

env:
RUST_BACKTRACE: 1

jobs:
clippy:
name: Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
steps:
- uses: actions/checkout/@v4

- name: Install Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Rust Cache
uses: Swatinem/rust-cache@v2

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

- name: Run machete
run: cargo machete
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ jobs:
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: nextest
tool: cargo-nextest

- name: Run Test
run: |
# cargo nextest run get_all_pbs_works new_get_index # generate database
cargo nextest run --locked
cargo test --doc

0 comments on commit 774b59e

Please sign in to comment.