Update to go 1.22.6 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
workflow_dispatch: {} | |
jobs: | |
lint_and_test: | |
name: Lint and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22.6' | |
check-latest: false | |
- name: Run revive | |
run: | | |
go install github.com/mgechev/revive@latest | |
revive -config revive.toml -formatter friendly -set_exit_status ./... | |
- name: Run staticcheck | |
run: | | |
go install honnef.co/go/tools/cmd/staticcheck@latest | |
staticcheck ./... | |
- name: Run govulncheck | |
run: | | |
go version | |
go install golang.org/x/vuln/cmd/govulncheck@latest | |
govulncheck ./... | |
- name: Run go test | |
run: go test -v ./... | |
- name: Build Executables | |
run: | | |
go build ./cmd/jb-sw-realm | |
go build ./cmd/tenant_log | |
- name: Run go mod tidy | |
run: go mod tidy && git diff --quiet |