|
|
@ -22,12 +22,10 @@ jobs:
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
go-version: 1.18.x
|
|
|
|
go-version: 1.18.x
|
|
|
|
- name: Install linter
|
|
|
|
- uses: dominikh/staticcheck-action@a3513ade2e5cb8075ba1c1ed1890a989cf0f2aa0 #v1.2.0
|
|
|
|
run: |
|
|
|
|
with:
|
|
|
|
go get -u golang.org/x/lint/golint
|
|
|
|
version: "2022.1.1"
|
|
|
|
- name: Lint files
|
|
|
|
install-go: "false" # StaticCheck uses go v1.17 which does not support `any`
|
|
|
|
run: |
|
|
|
|
|
|
|
|
golint -set_exit_status ./...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
name: Test
|
|
|
|