Skip to content

[github/actions] add macos os test #13

[github/actions] add macos os test

[github/actions] add macos os test #13

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
# branches: [ master ]
pull_request:
# branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
ubuntu-latest,
macos-latest,
#windows-2022,
]
go-version: ['1.17', '1.18', '1.19', '1.20', '1.21', '1.22']
# See supported Go release schedule at https://golang.org/doc/devel/release.html
#
steps:
- uses: actions/checkout@v2
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...