2024-01-06 11:14:30 +01:00
|
|
|
name: Cargo CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
2024-01-06 16:14:07 +01:00
|
|
|
BEETSDIR: ./
|
2024-01-06 11:14:30 +01:00
|
|
|
|
|
|
|
jobs:
|
2024-01-06 16:14:07 +01:00
|
|
|
build_and_test:
|
|
|
|
name: Build and Test
|
2024-01-06 11:14:30 +01:00
|
|
|
container: docker.io/drrobot/musichoard-ci:rust-1.75
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: cargo build --verbose --all-features --all-targets
|
2024-01-06 16:14:07 +01:00
|
|
|
- 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
|
2024-01-06 11:14:30 +01:00
|
|
|
- run: cargo clippy --verbose --all-features --all-targets -- -D warnings
|
|
|
|
- run: cargo fmt --verbose -- --check
|