Skip to content

[ci] Use GH actions to expand OS test matrix #4

[ci] Use GH actions to expand OS test matrix

[ci] Use GH actions to expand OS test matrix #4

Workflow file for this run

name: go
on:
pull_request:
push:
branches:
- main
jobs:
test:
strategy:
matrix:
go:
- 1.20.4
os:
- macos-11
- macos-12
- macos-13
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v4
with:
go-version-file: ${{ matrix.go }}
- name: Set GO_VERSION
run: echo "GO_VERSION=${{ matrix.go }}" >> $GITHUB_ENV
- name: Test
run: .ci/scripts/test.sh