diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..1478f003 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,30 @@ +name: Go + +on: + push: + branches: [ main ] + pull_request: { } + +jobs: + go: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: stable + cache: false + + - name: Lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + only-new-issues: true + + # Enable the gosec linter w/o having to create a .golangci.yml config + args: -E gosec + + - name: Test + run: go test -v ./...