Skip to content

Commit

Permalink
Replace unmaintained/outdated GitHub Actions (#17)
Browse files Browse the repository at this point in the history
The `actions-rs/*` actions are replaced with `dtolnay/rust-toolchain`
and plain cargo commands.
  • Loading branch information
nickelc authored Mar 6, 2023
1 parent cad5cf5 commit ebc2bdd
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,14 @@ jobs:
- stable

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- uses: actions-rs/cargo@v1
with:
command: build

- uses: actions-rs/cargo@v1
with:
command: test

- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- run: cargo build
- run: cargo test
- run: cargo fmt --check --all
- run: cargo clippy -- -D warnings

0 comments on commit ebc2bdd

Please sign in to comment.