musichoard/.gitea/workflows/gitea-ci.yaml
Wojciech Kozlowski 2094fbb41c
Some checks failed
Cargo CI / Build and Test (pull_request) Failing after 52s
Cargo CI / Lint (pull_request) Successful in 43s
Prepare integration tests for CI
2024-01-06 16:03:17 +01:00

29 lines
682 B
YAML

name: Cargo CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
BEETSDIR: ./
jobs:
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