2021-10-19 16:17:21 +00:00
|
|
|
name: continuous-integration
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
go-version: [1.16.x, 1.17.x]
|
|
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
2021-10-21 12:29:57 +00:00
|
|
|
env:
|
|
|
|
GO111MODULE: on
|
2021-10-19 16:17:21 +00:00
|
|
|
steps:
|
2021-10-21 12:29:57 +00:00
|
|
|
-
|
|
|
|
name: Checkout code
|
2021-11-03 14:17:42 +00:00
|
|
|
uses: actions/checkout@v2.4.0
|
2021-10-19 16:17:21 +00:00
|
|
|
|
2021-10-21 12:29:57 +00:00
|
|
|
-
|
|
|
|
name: Install Go
|
2022-02-10 07:46:02 +00:00
|
|
|
uses: actions/setup-go@v2.2.0
|
2021-10-21 12:29:57 +00:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
2021-10-19 16:17:21 +00:00
|
|
|
|
2021-10-21 12:29:57 +00:00
|
|
|
-
|
|
|
|
name: Test code
|
|
|
|
run: |
|
|
|
|
go test ./pkg/...
|
|
|
|
|
|
|
|
-
|
|
|
|
name: Vet code
|
|
|
|
run: |
|
|
|
|
go vet ./pkg/...
|