ci: add format workflow
Some checks failed
Format and Lint / format-check (push) Failing after 11m9s
Some checks failed
Format and Lint / format-check (push) Failing after 11m9s
This commit is contained in:
parent
9d14428127
commit
5466ff1347
1 changed files with 25 additions and 0 deletions
25
.forgejo/workflows/format.yaml
Normal file
25
.forgejo/workflows/format.yaml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Format and Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
format-check:
|
||||||
|
runs-on: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: "1.20"
|
||||||
|
|
||||||
|
- name: Run Format Check
|
||||||
|
run: |
|
||||||
|
make format
|
Loading…
Reference in a new issue