Replace Travis with GitHub Actions

This commit is contained in:
Alexander Neumann
2020-09-13 11:13:06 +02:00
parent 06f8484400
commit 6e44ec0763
4 changed files with 64 additions and 40 deletions

36
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Build and tests
on: [push]
jobs:
build:
name: Build
strategy:
matrix:
go-version:
- 1.14.x
- 1.15.x
runs-on: ubuntu-latest
env:
GOPROXY: https://proxy.golang.org
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code
uses: actions/checkout@v1
- name: Build
run: |
go run build.go --goos linux
go run build.go --goos windows
go run build.go --goos darwin
- name: Run tests
run: |
export PATH=$HOME/bin:$PATH
go test ./...