From 3c1bba943e14cb03ff51eb33f630ebd1ac2a66c9 Mon Sep 17 00:00:00 2001 From: raul Date: Wed, 1 May 2024 08:40:31 +0200 Subject: [PATCH] Add workflows --- .gitea/workflows/go-audit.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/go-audit.yaml diff --git a/.gitea/workflows/go-audit.yaml b/.gitea/workflows/go-audit.yaml new file mode 100644 index 0000000..19095f2 --- /dev/null +++ b/.gitea/workflows/go-audit.yaml @@ -0,0 +1,27 @@ +name: Go audit +run-name: ${{ gitea.actor }} pushed to main! 🚀 +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + audit: + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '>=1.22.0' + + - name: Verify dependencies + run: go mod verify + + - name: Build + run: go build -v ./... + + - name: Run go vet + run: go vet ./...