Skip to content

Commit 3e90229

Browse files
authored
Merge pull request #76 from github/gh-actions
Use GitHub Actions for tests
2 parents 3cd8e93 + 61fb27a commit 3e90229

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed
File renamed without changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on: [push, pull_request]
2+
name: Test macOS
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: ["1.14", "1.x"]
8+
os: [macos-latest]
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@v2
13+
with:
14+
go-version: ${{ matrix.go-version }}
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: Setup Environment
20+
run: |
21+
echo GIT_VERSION=$(git describe --tags) >> $GITHUB_ENV
22+
- name: Test
23+
run: GO111MODULE=on go test -v ./...
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on: [push, pull_request]
2+
name: Test Windows
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: ["1.14", "1.x"]
8+
os: [windows-latest]
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@v2
13+
with:
14+
go-version: ${{ matrix.go-version }}
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: Setup Environment
20+
run: |
21+
echo GIT_VERSION=$(git describe --tags) >> $GITHUB_ENV
22+
- name: Test
23+
env:
24+
CGO_ENABLED: 1
25+
GO111MODULE: "on"
26+
run: go test -v ./...
File renamed without changes.

0 commit comments

Comments
 (0)