From 9b0b248d5e6ba10c954f076a98c5f7760f243882 Mon Sep 17 00:00:00 2001 From: Peter Kieltyka Date: Thu, 25 Mar 2021 08:38:01 -0400 Subject: [PATCH] github ci --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..142f5f9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +on: [push, pull_request] +name: Test +jobs: + test: + env: + GOPATH: ${{ github.workspace }} + GO111MODULE: off + + defaults: + run: + working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} + + strategy: + matrix: + go-version: [1.14.x, 1.15.x, 1.16.x] + os: [ubuntu-latest, macos-latest, windows-latest] + + runs-on: ${{ matrix.os }} + + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + with: + path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} + - name: Test + run: | + go get -d -t ./... + go test -v ./...