podbringer/.forgejo/workflows/check-lint.yml
Paul van Tilburg 526c3aa30c
Some checks failed
Check, lint and test / Check, lint and test (push) Failing after 48s
Switch to Forgejo Actions
Also simplify the workflows by using the Rust images.
2024-07-26 22:39:25 +02:00

29 lines
582 B
YAML

name: "Check, lint and test"
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
check_lint:
name: Check, lint and test
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