|
@@ -3,17 +3,24 @@ on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
|
build:
|
|
build:
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
|
|
+ strategy:
|
|
|
|
|
+ matrix:
|
|
|
|
|
+ os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
|
+ runs-on: ${{ matrix.os }}
|
|
|
steps:
|
|
steps:
|
|
|
- name: Checkout
|
|
- name: Checkout
|
|
|
uses: actions/checkout@v2
|
|
uses: actions/checkout@v2
|
|
|
|
|
+
|
|
|
- name: Setup Go
|
|
- name: Setup Go
|
|
|
uses: actions/setup-go@v2
|
|
uses: actions/setup-go@v2
|
|
|
with:
|
|
with:
|
|
|
go-version: '^1.17'
|
|
go-version: '^1.17'
|
|
|
|
|
+
|
|
|
- name: Format
|
|
- name: Format
|
|
|
- run: gofmt -d -e -s .
|
|
|
|
|
|
|
+ run: make fmt
|
|
|
|
|
+
|
|
|
- name: Build
|
|
- name: Build
|
|
|
run: make build
|
|
run: make build
|
|
|
|
|
+
|
|
|
- name: Test
|
|
- name: Test
|
|
|
run: make test
|
|
run: make test
|