mirror of https://github.com/aldy505/bob.git
23 lines
477 B
YAML
23 lines
477 B
YAML
name: Build test
|
|
|
|
on: [pull_request, push]
|
|
|
|
jobs:
|
|
build-test:
|
|
name: Build test
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
go-version: [1.16.x, 1.17.x]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Build
|
|
run: go build ./ |