Skip to content

Commit

Permalink
Merge pull request #17 from jucr-io/update-rust-workflow
Browse files Browse the repository at this point in the history
CI: Drop use of outdated actions-rs workflow
  • Loading branch information
zeenix authored Jan 8, 2025
2 parents 63bd783 + 23fc7a8 commit e5adace
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test
- name: Test
run: cargo test

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check formatting
run: cargo fmt -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
toolchain: stable
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Catch common mistakes
run: cargo clippy -- -D warnings

0 comments on commit e5adace

Please sign in to comment.