26 lines
430 B
YAML
26 lines
430 B
YAML
name: Go
|
|
on: [push, pull_request]
|
|
jobs:
|
|
|
|
build:
|
|
name: Build and Test
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go: [ 1.15.x, 1.16.x ]
|
|
steps:
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: go build -v ./...
|
|
|
|
- name: Test
|
|
run: go test -v ./...
|