Skip to content

Update CI to Go 1.23 #258

Update CI to Go 1.23

Update CI to Go 1.23 #258

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
strategy:
matrix:
# Minimum supported version (1.18) and the latest two
go-version: ['1.18', '1.22', '1.23']
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Check formatting
if: matrix.go-version == '1.23' && matrix.platform == 'ubuntu-latest'
run: diff -u <(echo -n) <(go fmt $(go list ./...))
- name: Run unit tests
run: go test -race -v ./...