Skip to content

Commit

Permalink
ci: don't use the unmaintained actions-rs actions
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Zak <richard.j.zak@gmail.com>
  • Loading branch information
rjzak committed Mar 3, 2024
1 parent af7f1e4 commit 8c170ca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 28 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
components: rustfmt
toolchain: nightly
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Setup Rust toolchain
run: rustup show && rustup update && rustup component add rustfmt
- name: cargo fmt
run: cargo fmt --all -- --check

clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
components: clippy
toolchain: nightly
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Setup Rust toolchain
run: rustup show && rustup update && rustup component add clippy
- name: cargo clippy
run: cargo clippy --all-features --tests -- -D warnings
12 changes: 4 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.profile.flag }}
- name: Install Rust
run: rustup toolchain install ${{ matrix.toolchain }}
- name: cargo test
run: cargo +${{ matrix.toolchain }} test --all-features ${{ matrix.profile.flag }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 8c170ca

Please sign in to comment.