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 ./...