Feat: add workflows
This commit is contained in:
20
.gitea/workflows/test.yml
Normal file
20
.gitea/workflows/test.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Go test
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-go-vet:
|
||||||
|
runs-on: imgbuilder
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run go vet
|
||||||
|
run: go vet
|
||||||
|
run-go-test:
|
||||||
|
needs: run-go-vet
|
||||||
|
runs-on: imgbuilder
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run go test
|
||||||
|
run: make test
|
||||||
Reference in New Issue
Block a user