fix: corrects go version in ci #2
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: Go CI | |
on: | |
push: | |
branches: ['*'] | |
pull_request: | |
branches: ['*'] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.22.5 | |
- name: Verify dependencies | |
run: go mod verify | |
- name: Run go build | |
run: go build -v ./... | |
- name: Run go vet | |
run: go vet ./... | |
- uses: dominikh/[email protected] | |
with: | |
version: "2022.1.3" | |
- name: Install golint | |
run: go install golang.org/x/lint/golint@latest | |
- name: Run golint | |
run: golint ./... |