Files
bluekeyes-go-gitdiff/.github/workflows/go.yml
T
Billy Keyes 9e0997ef65 Update Go and golangci-lint versions (#49)
The minimum Go version for the package is now Go 1.21. This is because a
future change will use the 'slices' package in test code. Note that non-test
code in the package should still be compatible with older versions of Go.

As part of this, also update the golangci-lint version to one that works
with Go 1.21, which required replacing some deprecated linters.
2024-08-11 11:39:23 -07:00

27 lines
495 B
YAML

name: Go
on:
pull_request:
push:
branches: [master]
jobs:
verify:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
- name: Test
run: go test -v ./...