Switch to `actions/setup-go@v2-beta` which advertises better retries around downloading the Go version
27 lines
555 B
YAML
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
|