From ad5ddb104d2a931916adf43b6426345725a1db47 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Wed, 23 Sep 2020 08:25:57 -0600 Subject: Add GitHub Actions support --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml 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 . -- cgit v1.2.3