chore: add action for format checking
This commit is contained in:
parent
4fd33e6ceb
commit
e5d797d958
1 changed files with 3 additions and 9 deletions
18
.forgejo/workflows/format_pull.yaml
Normal file
18
.forgejo/workflows/format_pull.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: format
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: nixos-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: 'main'
|
||||
- name: dev
|
||||
uses: actions/nix/develop@main
|
||||
with:
|
||||
flake: .
|
||||
run: treefmt
|
Loading…
Add table
Add a link
Reference in a new issue