Implement legacy error handling (#75) #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
# Test with a specific version of Go since some tests rely on behavior that | |
# may drift with versions (e.g., inlining behavior, gofmt behavior, etc.). | |
test-latest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.x | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Test | |
run: go test ./... | |
- name: TestInline | |
run: go test -v -run=TestInline | |
env: {TEST_INLINE: true} | |
- name: Format | |
run: diff -u <(echo -n) <(gofmt -s -d .) | |
# Test on a large matrix of Go versions and operating systems. | |
test-all: | |
strategy: | |
matrix: | |
go-version: [1.23.x] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Test | |
run: go test ./... |