Skip to content

Commit

Permalink
👷 Split lint / tests steps in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurlm committed Dec 4, 2023
1 parent 80422a4 commit 5a45385
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
build_and_tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- run: rustup toolchain install 1.66.1
- run: rustup override set 1.66.1
- uses: Swatinem/rust-cache@v2
- run: rustc --version

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

- name: Run tests (no default features)
run: cargo test --verbose --no-default-features

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Lint
run: cargo clippy

- name: Format
run: cargo fmt --check

0 comments on commit 5a45385

Please sign in to comment.