Skip to content

Add golangci-lint

Add golangci-lint #72

Workflow file for this run

name: On Pull Request
on:
pull_request:
branches: [ master, main ]
push:
branches: [ master, main ]
jobs:
test:
name: test
strategy:
matrix:
go-version:
- 1.22.x
- 1.23.x
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true # caching and restoring go modules and build outputs
- run: go env
- name: Install deps
run: go mod download
- name: nilaway
run: make nilaway
- name: Test
run: go test -v -race -p=1 -count=1