Skip to content

Commit

Permalink
refactor(ci): small refactoring (#113)
Browse files Browse the repository at this point in the history
* chore(ci): use dtolnay/rust-toolchain action to setup rust consistently

* refactor(ci): remove redundant job name

* refactor(ci): remove unnecessary hyphen from rustfmt command
  • Loading branch information
tottoto committed Jun 10, 2024
1 parent 23212f1 commit 60c6383
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ on:

jobs:
style:
name: Check Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rustfmt
run: rustup component add rustfmt
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
run: cargo fmt --all --check

test:
name: Test
needs: [style]
runs-on: ubuntu-latest
strategy:
Expand All @@ -27,8 +26,9 @@ jobs:
- beta
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Run tests
run: cargo test --workspace

Expand Down

0 comments on commit 60c6383

Please sign in to comment.