Skip to content

Commit

Permalink
Split CI into different jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 committed Dec 2, 2024
1 parent dfc83a8 commit c8f4a3f
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,34 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

fmt-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Format check
- name: Check code formatting
run: cargo fmt --check

clippy-no-std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clippy (no_std)
run: cargo clippy --verbose
- name: Clippy (no_std + borsh)
run: cargo clippy --verbose --features borsh

clippy-with-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clippy (with tests)
run: cargo clippy --verbose --tests
- name: Tests
- name: Clippy (with tests + borsh)
run: cargo clippy --verbose --tests --features borsh

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose

0 comments on commit c8f4a3f

Please sign in to comment.