aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-12-20 22:59:04 +0100
committerTeddy Wing2020-12-20 23:03:11 +0100
commitb89d9ed327fe7689edd72bfec815d754a724b850 (patch)
tree4eba252a823b3877ea3b314a631c289bcc8bda55
parentdd8faf757c25287342d8aa86ad9b1ff95ea6ca39 (diff)
downloadbrowserenv-master.tar.bz2
Add GitHub Actions `go test` CI workflowHEADv0.1.0master
Set up CI to run tests.
-rw-r--r--.github/workflows/test.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..cb9f3cc
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,30 @@
+name: Test
+
+on:
+ push:
+ branches:
+ - master
+
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ test:
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ matrix:
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ go: ['1.15', '1.14']
+
+ name: Test ${{ matrix.os }}-go${{ matrix.go }}
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Setup Go
+ uses: actions/setup-go@v1
+ with:
+ go-version: ${{ matrix.go }}
+
+ - run: go test -v ./...