2021-10-19 16:17:21 +00:00
|
|
|
name: continuous-integration
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-04-12 07:14:28 +00:00
|
|
|
go-version: [1.16.x, 1.17.x, 1.18.x]
|
2021-10-19 16:17:21 +00:00
|
|
|
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
|
2022-03-14 13:06:52 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-10-19 16:17:21 +00:00
|
|
|
|
2021-10-21 12:29:57 +00:00
|
|
|
-
|
|
|
|
name: Install Go
|
2022-03-14 13:05:09 +00:00
|
|
|
uses: actions/setup-go@v3
|
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/...
|