2021-07-06 04:15:01 +02:00
|
|
|
name: Build Status
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main, master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main, master ]
|
|
|
|
|
2021-06-26 08:43:59 +02:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-02-11 10:29:44 +01:00
|
|
|
go-version: [1.17.x]
|
2021-06-26 08:49:05 +02:00
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2021-07-06 04:15:01 +02:00
|
|
|
|
2021-06-26 08:43:59 +02:00
|
|
|
steps:
|
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
2021-07-06 04:15:01 +02:00
|
|
|
|
2021-06-26 08:43:59 +02:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-07-06 04:15:01 +02:00
|
|
|
|
2021-06-26 08:43:59 +02:00
|
|
|
- name: Build
|
|
|
|
run: go build -v ./...
|
2021-07-06 04:15:01 +02:00
|
|
|
|
2021-06-26 08:43:59 +02:00
|
|
|
- name: Test
|
|
|
|
run: go test ./...
|