podbringer/.forgejo/workflows/check-lint.yml
Paul van Tilburg 8bb631c9db
All checks were successful
Check and lint / Check and lint (push) Successful in 50s
Fix check/list workflow and step name
2024-07-27 16:30:57 +02:00

29 lines
570 B
YAML

name: "Check and lint"
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
check_lint:
name: Check and lint
runs-on: rust-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Run cargo check
run: cargo check --all-features
- name: Run cargo clippy
run: cargo clippy -- -D warnings
- name: Run cargo fmt
run: cargo fmt --all -- --check
# TODO: Add a test suite first!
# - name: Run cargo test
# run: cargo test --all-features