wip: working on it slowly #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Test | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17' | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Get full repo history | |
run: git fetch --prune --unshallow --tags | |
- name: Download dependencies | |
shell: bash | |
run: go mod download | |
- name: Build | |
shell: bash | |
run: | | |
mkdir -p bin | |
go build -o bin . | |
ls -la bin | |
- name: Test | |
shell: bash | |
run: go test -race -timeout 60s ./... |