Yard/.gitea/workflows/cargo.yaml

20 lines
509 B
YAML

name: Rust build & run checks
run-name: ${{ github.actor }} is building and running cargo checks
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
cargo-build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cargo install
run: apt update && apt -y install cargo
- name: Test
run: cargo test --verbose
- name: Clippy
run: cargo clippy --all-features -- -D warnings
- name: Fmt
run: cargo fmt --check