-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (28 loc) · 958 Bytes
/
Copy pathtest.yaml
File metadata and controls
32 lines (28 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Runs the test suite on every push and pull request.
#
# release.yaml also tests, but only once a tag exists - and a tag is not a cheap
# thing to be wrong about, since taking one back means deleting it from a public
# repository. This runs the same suite on the same four systems beforehand, so
# that a tag is only ever put on a commit already known to pass.
name: Test
on:
push:
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-15-intel, windows-latest]
# One system failing should not stop the others: which ones pass is the
# answer being looked for, and Windows is where this repository differs.
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Run tests
run: go test -v ./...