Skip to content

Bump GH Actions Golang version #209

Bump GH Actions Golang version

Bump GH Actions Golang version #209

Workflow file for this run

---
# This GitHub action runs your tests for each commit push and/or PR. Optionally
# you can turn it on using a cron schedule for regular testing.
#
name: Tests
on:
pull_request:
paths-ignore:
- 'CHANGELOG.md'
- 'README.md'
push:
paths-ignore:
- 'CHANGELOG.md'
- 'README.md'
jobs:
# ensure the code builds...
build:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
go:
- 1.23.x
- 1.22.x
name: Go ${{ matrix.go }} Build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
id: go
- name: Get dependencies
run: |
go mod download
- name: Build
run: |
go build -v .
test:
name: test
strategy:
matrix:
go:
- 1.23.x
- 1.22.x
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: go test
run: go test -v .