From e196c98d86d541c3d2ae13c8d9c1e070748ea3cd Mon Sep 17 00:00:00 2001 From: Brahim Berkasse Date: Thu, 18 Jan 2024 19:14:23 +0100 Subject: [PATCH] github CI/CD --- .github/workflows/audit.yml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/audit.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 0000000..f802f26 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,50 @@ + +name: Audit + + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + + audit: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.19.3 + + - name: Verify dependencies + run: go mod verify + + - name: Build + run: go build -v ./... + + - name: Run go vet + run: go vet ./... + + - name: Install staticcheck + run: go install honnef.co/go/tools/cmd/staticcheck@latest + + - name: Run staticcheck + run: staticcheck ./... + + - name: Install golint + run: go install golang.org/x/lint/golint@latest + + - name: Run golint + run: golint ./... + + - name: Run tests + run: go test -race -vet=off ./... + + + + +