Skip to content

Commit 15b0a66

Browse files
authored
Switch to gh-actions (WIP 1/2) (#67)
1 parent f2a9ea9 commit 15b0a66

File tree

2 files changed

+36
-70
lines changed

2 files changed

+36
-70
lines changed

.github/workflows/test.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
native-os-build:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macOS-latest]
14+
15+
runs-on: ${{ matrix.os }}
16+
17+
steps:
18+
- uses: actions/checkout@v1
19+
- uses: actions/setup-go@v1
20+
with:
21+
go-version: "1.13"
22+
- name: Build native
23+
run: GOARCH=amd64 go build -v ./...
24+
shell: bash
25+
- name: Run unit tests
26+
run: go test -v ./...
27+
shell: bash
28+
- name: Cross-build for 386
29+
if: matrix.os != 'macOS-latest'
30+
run: GOARCH=386 go build -v ./...
31+
shell: bash
32+
- name: Cross-build for arm
33+
if: matrix.os != 'macOS-latest'
34+
run: GOARCH=arm go build -v ./...
35+
shell: bash
36+

.travis.yml

-70
This file was deleted.

0 commit comments

Comments
 (0)