Skip to content

Add CI badge to README, add staticcheck.conf #3

Add CI badge to README, add staticcheck.conf

Add CI badge to README, add staticcheck.conf #3

Workflow file for this run

name: Go
'on':
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Formatted?
run: |
gofmt -l .
test -z `gofmt -l .`
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Benchmark
run: go test -bench . ./...
- name: Lint (staticcheck)
uses: dominikh/[email protected]
with:
install-go: false
version: "2023.1.6"