Skip to content

Commit

Permalink
feat(ci): modernize configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini committed Dec 16, 2024
1 parent e057c8f commit a79bf22
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,28 @@ jobs:
runs-on: ubuntu-latest

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

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt

- run: rustup component add rustfmt

- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Rust rustfmt
run: cargo fmt --all -- --check

clippy:
name: clippy / nightly
runs-on: ubuntu-latest

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

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: nightly
override: true
components: clippy

- run: rustup component add clippy

- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Run clippy
run: cargo clippy -- -D warnings

test:
name: test / ${{ matrix.name }}
Expand All @@ -67,7 +55,7 @@ jobs:
rust: 1.70

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

- run: sudo $HOME/.cargo/bin/rustup default ${{ matrix.rust }}

Expand Down

0 comments on commit a79bf22

Please sign in to comment.