PR Check
This commit is contained in:
parent
3f3efe4afa
commit
e9441dba46
1 changed files with 20 additions and 0 deletions
20
.forgejo/workflows/pr-check.yml
Normal file
20
.forgejo/workflows/pr-check.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: PR Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
lint-and-format:
|
||||
container:
|
||||
image: rust:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run format check
|
||||
run: cargo fmt --check
|
||||
|
||||
- name: Run Clippy
|
||||
run: cargo clippy
|
Loading…
Reference in a new issue