Skip to content

Version bump

Version bump #30

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ '**' ]
permissions:
contents: read
jobs:
build:
name: Test and Lint
runs-on: ubuntu-latest
strategy:
matrix:
gover: ['go.mod', 'oldstable', 'stable']
env:
# do not automatically upgrade go to a different version: https://go.dev/doc/toolchain
GOTOOLCHAIN: "local"
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: "Set up Go ${{ matrix.gover }}"
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: ${{ matrix.go != 'go.mod' && matrix.go || null }}
go-version-file: ${{ matrix.go == 'go.mod' && 'go.mod' || null }}
check-latest: true
id: go
- name: Verify go fmt
run: test -z "$(go fmt ./...)"
- name: Verify go vet
run: test -z "$(go vet ./...)"
- name: Test
run: make test
- name: Linting
if: matrix.gover == 'stable'
run: make lint