Skip to content

Merge pull request #33 from cybozu-go/update-20240711 #60

Merge pull request #33 from cybozu-go/update-20240711

Merge pull request #33 from cybozu-go/update-20240711 #60

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- 'main'
jobs:
test:
name: Small test
strategy:
matrix:
os: ["ubuntu-22.04", "macos-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: test -z "$(gofmt -s -l . | tee /dev/stderr)"
- run: go build .
- run: go test -race -v -count 1 .
- run: go vet .
- name: staticcheck
run: |
mkdir -p bin
GOBIN=$(pwd)/bin go install honnef.co/go/tools/cmd/staticcheck@latest
./bin/staticcheck .