cli/.github/workflows/go.yml
Mislav Marohnić 4e393fdab4 Avoid intermittent CI failures while setting up Go
Switch to `actions/setup-go@v2-beta` which advertises better retries
around downloading the Go version
2020-04-13 17:15:59 +02:00

27 lines
555 B
YAML

name: Tests
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v2-beta
with:
go-version: 1.13
- name: Check out code
uses: actions/checkout@v2
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test -race ./...
- name: Build
run: go build -v ./cmd/gh