2020-04-26 06:11:35 +03:00
|
|
|
name: Go
|
2020-10-06 19:53:36 +03:00
|
|
|
on: [push, pull_request]
|
2020-04-26 06:11:35 +03:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Test
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-10-06 19:53:58 +03:00
|
|
|
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
|
|
|
|
go-version: [ "1.13", "1.14", "1.15" ]
|
2020-04-26 06:11:35 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2020-10-06 19:53:58 +03:00
|
|
|
- name: Set up Go ${{ matrix.go-version }}
|
2020-10-06 19:49:58 +03:00
|
|
|
uses: actions/setup-go@v2
|
2020-04-26 06:11:35 +03:00
|
|
|
with:
|
2020-10-06 19:53:58 +03:00
|
|
|
go-version: ${{ matrix.go-version }}
|
2020-04-26 06:11:35 +03:00
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: go test -v ./
|