Skip to content

Commit f675151

Browse files
harshavardhanafwessels
authored andcommitted
Add go github actions build (#52)
1 parent 6de4475 commit f675151

File tree

3 files changed

+39
-57
lines changed

3 files changed

+39
-57
lines changed

.github/workflows/go.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Go
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
name: Test on Go ${{ matrix.go-version }} and ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
max-parallel: 4
17+
matrix:
18+
go-version: [1.13.x, 1.12.x]
19+
os: [ubuntu-latest, windows-latest]
20+
steps:
21+
- name: Set up Go ${{ matrix.go-version }}
22+
uses: actions/setup-go@v1
23+
with:
24+
go-version: ${{ matrix.go-version }}
25+
id: go
26+
27+
- name: Check out code into the Go module directory
28+
uses: actions/checkout@v1
29+
30+
- name: Build on ${{ matrix.os }}
31+
if: matrix.os == 'windows-latest'
32+
run: go test -race -v ./...
33+
- name: Build on ${{ matrix.os }}
34+
if: matrix.os == 'ubuntu-latest'
35+
run: |
36+
diff -au <(gofmt -d .) <(printf "")
37+
go test -race -v ./...
38+
go vet -asmdecl .
39+
./test-architectures.sh

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)