Feat: add workflows
Some checks failed
Go test / run-go-vet (push) Successful in 5s
Go test / run-go-test (push) Failing after 22s
Go test / cleanup-go-test (push) Successful in 16s

This commit is contained in:
2025-12-08 23:18:19 +08:00
parent f191aef810
commit c18a5b220c
3 changed files with 48 additions and 7 deletions

29
.gitea/workflows/test.yml Normal file
View File

@@ -0,0 +1,29 @@
---
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-ci
cleanup-go-test:
needs: run-go-test
runs-on: imgbuilder
if: always()
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run make docker-clean
run: make docker-clean