From fa4f193be2e6a6d6a402c46807a2f254cda0da15 Mon Sep 17 00:00:00 2001 From: m3ta-chiron Date: Sun, 18 Oct 2026 15:14:18 +0200 Subject: [PATCH] ci: add gitea actions test workflow (vet, gofmt, test, build) --- .gitea/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..6bcc37d --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,30 @@ +name: test + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Go einrichten + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - name: go vet + run: go vet ./... + - name: gofmt-Check + run: | + unformatted=$(gofmt -l .) + if [ -n "$unformatted" ]; then + echo "Folgende Dateien sind nicht gofmt-formatiert:" + echo "$unformatted" + exit 1 + fi + - name: go test + run: go test ./... + - name: go build + run: go build ./...