2020-06-19 13:19:37 +00:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-11-23 12:51:58 +00:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- v*
|
2020-08-25 06:46:04 +00:00
|
|
|
paths:
|
|
|
|
- "**/*.go"
|
2020-09-09 05:56:17 +00:00
|
|
|
- "go.mod"
|
|
|
|
- "go.sum"
|
2020-06-19 13:19:37 +00:00
|
|
|
pull_request:
|
2020-08-30 17:10:28 +00:00
|
|
|
types: [opened, synchronize, reopened]
|
2020-08-24 16:04:55 +00:00
|
|
|
paths:
|
|
|
|
- "**/*.go"
|
2020-09-09 05:56:17 +00:00
|
|
|
- "go.mod"
|
|
|
|
- "go.sum"
|
2020-06-19 13:19:37 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-08-24 08:09:51 +00:00
|
|
|
test:
|
2020-06-19 13:19:37 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
2020-11-15 15:39:23 +00:00
|
|
|
fail-fast: false
|
2020-06-19 13:19:37 +00:00
|
|
|
matrix:
|
|
|
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
|
|
steps:
|
|
|
|
- name: Set up Go 1.x
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-03-18 04:17:26 +00:00
|
|
|
go-version: ^1.16.2
|
2020-06-19 13:19:37 +00:00
|
|
|
|
2020-08-30 17:10:28 +00:00
|
|
|
- name: Checkout codebase
|
2020-06-19 13:19:37 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Test
|
2021-02-16 21:16:31 +00:00
|
|
|
run: go test -v -timeout 1h ./...
|