musichoard/.gitea/workflows/gitea-ci.yaml

29 lines
682 B
YAML
Raw Normal View History

name: Cargo CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
2024-01-06 16:03:17 +01:00
BEETSDIR: ./
jobs:
2024-01-06 13:57:57 +01:00
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
2024-01-06 11:59:17 +01:00
- run: cargo test --verbose --all-features --all-targets --no-fail-fast
2024-01-06 13:57:57 +01:00
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