Switch tests and releases to GitHub Actions (#311)

This commit is contained in:
Filippo Valsorda
2020-11-20 20:48:10 +01:00
committed by GitHub
parent 9c196b6cdb
commit 33ca7b5c46
3 changed files with 68 additions and 26 deletions

22
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
on: [push, pull_request]
name: Test
jobs:
test:
name: Go tests
strategy:
fail-fast: false
matrix:
go: [1.14.x, 1.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout repository
uses: actions/checkout@v2
- name: Run analyses
run: go run analysis.go ./...
- name: Run tests
run: go test -race ./...