Skip to content

Introduce staticcheck #2

Introduce staticcheck

Introduce staticcheck #2

Workflow file for this run

name: CI for v1 Module
on:
push:
paths-ignore:
- 'v2/**'
pull_request:
paths-ignore:
- 'v2/**'
jobs:
test-v1:
strategy:
matrix:
go-version: [1.23.x, 1.24.x]
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
defaults:
run:
working-directory: ./
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go-version}}
- name: gofmt
run: test -z "`gofmt -l .`"
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: golint
run: test -z "`$(go env GOPATH)/bin/golint ./...`"
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: staticcheck
run: $(go env GOPATH)/bin/staticcheck ./...
- name: go test
run: go test -v ./...
- name: Build example
run: cd example && ./linux64_build.sh