aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2020-09-23 08:25:57 -0600
committerBen Johnson <benbjohnson@yahoo.com>2020-09-23 08:37:41 -0600
commitad5ddb104d2a931916adf43b6426345725a1db47 (patch)
treeefa3f2e26923eb0ead7729cc413dbe37b333a601
parentREADME (diff)
downloadpds-ad5ddb104d2a931916adf43b6426345725a1db47.tar.gz
pds-ad5ddb104d2a931916adf43b6426345725a1db47.tar.xz
Add GitHub Actions support
-rw-r--r--.github/workflows/test.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..1843166
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,29 @@
+on: [pull_request]
+name: Test
+jobs:
+ short:
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - name: Install Go
+ uses: actions/setup-go@v2
+ with:
+ go-version: 1.15.x
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Short test
+ run: go test -short .
+
+ full:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Install Go
+ uses: actions/setup-go@v2
+ with:
+ go-version: 1.15.x
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Test
+ run: go test -parallel 10 .