Resolves #70: add stricter comment directive scan #26
Workflow file for this run
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
on: [push, pull_request] | |
name: ci | |
jobs: | |
all: | |
strategy: | |
matrix: | |
go-version: [1.18, 1.19, 1.x] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: install go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: build | |
run: make build | |
# For earlier go versions, staticcheck build fails due to: | |
# | |
# ../../../go/pkg/mod/honnef.co/go/[email protected]/go/ir/builder.go:36:2: | |
# //go:build comment without // +build comment | |
# | |
# or due to: | |
# | |
# ../../../go/pkg/mod/honnef.co/go/[email protected]/staticcheck/lint.go:4030:36: | |
# sel.Obj().(*types.Func).Origin undefined (type *types.Func has no field | |
# or method Origin) | |
# note: module requires Go 1.19 | |
# | |
- name: install vet tools (go 1.19 or later) | |
if: ${{ matrix.go-version >= '1.19' }} | |
run: make install-vet | |
- name: vet (go 1.19 or later) | |
if: ${{ matrix.go-version >= '1.19' }} | |
run: make vet | |
- name: test | |
run: make test |