Skip to content

Commit

Permalink
Merge pull request #76 from github/gh-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions for tests
  • Loading branch information
vcsjones authored May 3, 2021
2 parents 3cd8e93 + 61fb27a commit 3e90229
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
File renamed without changes.
23 changes: 23 additions & 0 deletions .github/workflows/test-macos-go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on: [push, pull_request]
name: Test macOS
jobs:
test:
strategy:
matrix:
go-version: ["1.14", "1.x"]
os: [macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Environment
run: |
echo GIT_VERSION=$(git describe --tags) >> $GITHUB_ENV
- name: Test
run: GO111MODULE=on go test -v ./...
26 changes: 26 additions & 0 deletions .github/workflows/test-windows-go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on: [push, pull_request]
name: Test Windows
jobs:
test:
strategy:
matrix:
go-version: ["1.14", "1.x"]
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Environment
run: |
echo GIT_VERSION=$(git describe --tags) >> $GITHUB_ENV
- name: Test
env:
CGO_ENABLED: 1
GO111MODULE: "on"
run: go test -v ./...
File renamed without changes.

0 comments on commit 3e90229

Please sign in to comment.