ref: a25e8cf9505bf9ef1b266fc4d08c3c2ed4b3ddb4
parent: 27a47c20e19cafd10b8a09fcd4f0177adf5312cd
author: Michael Misch <michaelmisch1985@gmail.com>
date: Tue Mar 31 04:35:43 PDT 2020
Create go.yml
--- /dev/null
+++ b/.github/workflows/go.yml
@@ -1,0 +1,32 @@
+name: Testing
+
+on:
+ pull_request:
+ branches: [ master ]
+
+jobs:
+
+ build:
+ name: Build
+ runs-on: ubuntu-latest
+ steps:
+
+ - name: Set up Go 1.13
+ uses: actions/setup-go@v1
+ with:
+ go-version: 1.13
+ id: go
+
+ - name: Check out code into the Go module directory
+ uses: actions/checkout@v2
+
+ - name: Get dependencies
+ run: |
+ go get -v -t -d ./...
+ if [ -f Gopkg.toml ]; then
+ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
+ dep ensure
+ fi
+
+ - name: Run Tests
+ run: go test -v ./...