Skip to content

Commit

Permalink
ci: use stable toolchain to run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mfontanini committed Feb 1, 2025
1 parent 3a389c1 commit 1334c32
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,33 @@ name: Merge checks

jobs:
check:
name: Check
name: Checks
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install rust toolchain
uses: dtolnay/[email protected]
with:
components: clippy

- name: Run cargo check
run: cargo check --features sixel

test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install rust toolchain
uses: dtolnay/[email protected]

- name: Run cargo test
run: cargo test

lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Run cargo clippy
run: cargo clippy -- -D warnings

- name: Install stable toolchain
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
components: rustfmt

- name: Run cargo fmt
run: cargo fmt --all -- --check

- name: Run cargo clippy
run: cargo clippy -- -D warnings
run: cargo +nightly fmt --all -- --check

nix-flake:
name: Validate nix flake
Expand Down

0 comments on commit 1334c32

Please sign in to comment.