diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2020-09-23 08:42:10 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 08:42:10 -0600 |
commit | e4de8999cb75fbfd67cb28edd34a26d871e5c698 (patch) | |
tree | efa3f2e26923eb0ead7729cc413dbe37b333a601 | |
parent | README (diff) | |
parent | Add GitHub Actions support (diff) | |
download | pds-e4de8999cb75fbfd67cb28edd34a26d871e5c698.tar.gz pds-e4de8999cb75fbfd67cb28edd34a26d871e5c698.tar.xz |
Merge pull request #14 from benbjohnson/github-actions
Add GitHub Actions support
-rw-r--r-- | .github/workflows/test.yml | 29 |
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 . |