makima/.github/workflows/check-pr.yaml
eljamm 94c7af7709 Add github actions workflows
- Check, format and lint code when committing
- Check pull requests for formatting
2024-06-09 13:40:13 +01:00

21 lines
461 B
YAML

on: pull_request
name: Check Pull Request
jobs:
format:
name: Format
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: "cargo fmt"
uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: review