Skip to content

Commit e4f3148

Browse files
committed
Added ghaction runner
1 parent b6f40b0 commit e4f3148

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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.15"
22+
- name: Build native
23+
run: go build -v ./...
24+
shell: bash
25+
- name: Run unit tests
26+
run: go test -v -race ./...
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

0 commit comments

Comments
 (0)