chore(tooling): add forgejo actions workflow
This commit is contained in:
parent
89118c45d1
commit
56731f877f
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/main.yaml
Normal file
24
.forgejo/workflows/main.yaml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
fmt:
|
||||||
|
runs-on: 'self-hosted'
|
||||||
|
steps:
|
||||||
|
- uses: 'actions/checkout@v4'
|
||||||
|
- uses: 'actions/setup-go@v5'
|
||||||
|
with:
|
||||||
|
go-version-file: 'go.mod'
|
||||||
|
- run: |
|
||||||
|
make tidy no-dirty
|
||||||
|
test:
|
||||||
|
runs-on: 'self-hosted'
|
||||||
|
steps:
|
||||||
|
- uses: 'actions/checkout@v4'
|
||||||
|
- uses: 'actions/setup-go@v5'
|
||||||
|
with:
|
||||||
|
go-version-file: 'go.mod'
|
||||||
|
- run: |
|
||||||
|
make check tidy no-dirty
|
Loading…
Add table
Reference in a new issue