Skip to content

test with matrix

test with matrix #3

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on: ["push", "pull_request"]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go:
- 1.18
- 1.20
- stable
- oldstable
runs-on: ${{ matrix.os }}
name: Go ${{ matrix.go }} tests @ ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- run: go build -v ./...
- run: go test -v ./...