Add Debug(label string, info any)
method to show debug info on fail
#144
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
name: staticcheck | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
paths-ignore: | |
- '**/*.md' | |
- '**/.gitignore' | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest"] | |
go: ["1.21"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install dependencies | |
run: go get . | |
- name: Run vet | |
run: go vet -v ./... | |
- name: Check diff of goimports | |
run: | | |
go install golang.org/x/tools/cmd/goimports@latest | |
goimports -w . && git diff --exit-code | |
- name: Setup staticcheck | |
uses: dominikh/[email protected] | |
with: | |
version: "2023.1.6" | |
install-go: false | |
min-go-version: ${{ matrix.go }} | |
cache-key: ${{ matrix.os }}-${{ matrix.go }} | |
- name: Run staticcheck | |
run: staticcheck ./... |