Split pipeline into tests and lint
Some checks failed
Cargo CI / Build and Test (pull_request) Failing after 53s
Cargo CI / Lint (pull_request) Successful in 42s

This commit is contained in:
Wojciech Kozlowski 2024-01-06 13:57:57 +01:00
parent fd2b83efbe
commit 0c6812f40c

View File

@ -10,12 +10,18 @@ env:
CARGO_TERM_COLOR: always
jobs:
pipeline:
name: Pipeline
build_and_test:
name: Build and Test
container: docker.io/drrobot/musichoard-ci:rust-1.75
steps:
- uses: actions/checkout@v3
- run: cargo build --verbose --all-features --all-targets
- 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 fmt --verbose -- --check