Skip to content

Commit

Permalink
Run linters after tests, instead of before
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsteele committed Apr 7, 2024
1 parent edf56bb commit 20abf31
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,6 @@ on:
- '**.md'

jobs:
linters:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Cargo clippy
run: cargo clippy --all-features -- -D warnings

tests:
strategy:
matrix:
Expand All @@ -44,3 +27,20 @@ jobs:
toolchain: ${{ matrix.rust }}
- name: Test
run: cargo test --verbose

linters:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Cargo clippy
run: cargo clippy --all-features -- -D warnings

0 comments on commit 20abf31

Please sign in to comment.