Split job

This commit is contained in:
Joel Wachsler 2022-07-10 15:35:18 +00:00
parent 6263118864
commit 7803ade2f1

View File

@ -1,8 +1,7 @@
on: on:
- push - push
jobs: jobs:
check: lint:
name: Rust project
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -21,6 +20,15 @@ jobs:
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: clippy command: clippy
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Run tests - name: Run tests
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1