-
Notifications
You must be signed in to change notification settings - Fork 43
37 lines (35 loc) · 1.09 KB
/
test.yml
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
33
34
35
36
37
name: go-hclog
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x, 1.23.x]
os: [ubuntu-latest, windows-latest, macos-latest]
# Latest macOS version uses Apple Silicon for which there are no arm64
# builds prior to Go 1.16. For these versions the macOS-13 runner is used
# which is Intel based.
exclude:
- go-version: 1.14.x
os: macos-latest
- go-version: 1.15.x
os: macos-latest
include:
- go-version: 1.14.x
os: macos-13
- go-version: 1.15.x
os: macos-13
steps:
- name: Install Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Test
run: go test -v ./...