Split pipeline into tests and lint
This commit is contained in:
parent
fd2b83efbe
commit
0c6812f40c
@ -10,12 +10,18 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pipeline:
|
build_and_test:
|
||||||
name: Pipeline
|
name: Build and Test
|
||||||
container: docker.io/drrobot/musichoard-ci:rust-1.75
|
container: docker.io/drrobot/musichoard-ci:rust-1.75
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: cargo build --verbose --all-features --all-targets
|
- run: cargo build --verbose --all-features --all-targets
|
||||||
- run: cargo test --verbose --all-features --all-targets --no-fail-fast
|
- run: cargo test --verbose --all-features --all-targets --no-fail-fast
|
||||||
|
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
container: docker.io/drrobot/musichoard-ci:rust-1.75
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
- run: cargo clippy --verbose --all-features --all-targets -- -D warnings
|
- run: cargo clippy --verbose --all-features --all-targets -- -D warnings
|
||||||
- run: cargo fmt --verbose -- --check
|
- run: cargo fmt --verbose -- --check
|
||||||
|
Loading…
Reference in New Issue
Block a user