Skip to content

Add Debug(label string, info any) method to show debug info on fail #144

Add Debug(label string, info any) method to show debug info on fail

Add Debug(label string, info any) method to show debug info on fail #144

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 ./...