mirror of
https://github.com/bluekeyes/go-gitdiff
synced 2026-06-08 13:18:30 +00:00
9e0997ef65
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.
27 lines
495 B
YAML
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 ./...
|