Skip to content

Commit

Permalink
Split jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
marsavar committed Jul 2, 2024
1 parent 083fd71 commit 632b32b
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
name: Check Rust
name: CI

on: [push, pull_request]

jobs:
build:
name: Check Rust
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Check
run: cargo check
- run: cargo test

- name: Check clippy lint
uses: clechasseur/rs-clippy-check@80bcfb7d14c9bb0415d025602b7fabcf9463becd # v3.0.4
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: cargo fmt --all -- --check

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: clechasseur/rs-clippy-check@80bcfb7d14c9bb0415d025602b7fabcf9463becd # v3.0.4
with:
args: -- -D warnings

- name: Test
run: cargo test
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: cargo check

0 comments on commit 632b32b

Please sign in to comment.