Yard/.gitea/workflows/cargo.yaml

21 lines
511 B
YAML
Raw Permalink Normal View History

2023-08-18 09:53:21 +00:00
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
2023-08-18 09:59:23 +00:00
- name: Cargo install
run: curl https://sh.rustup.rs -sSf | sh
2023-08-18 09:53:21 +00:00
- name: Test
run: cargo test --verbose
- name: Clippy
run: cargo clippy --all-features -- -D warnings
- name: Fmt
run: cargo fmt --check