From 3262d45d82cae6d146b0262bf1f5895f5ae82467 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 31 Dec 2019 12:15:57 +0100 Subject: [PATCH] Add go workflow (#119) --- .github/workflows/go.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..df5659a --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,33 @@ +name: Go +on: [push, pull_request] +jobs: + test: + strategy: + matrix: + go-version: [1.11.x, 1.12.x, 1.13.x] + platform: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + + - name: Checkout code + uses: actions/checkout@v1 + + - name: Download Go modules + env: + GO111MODULE: "on" + run: go mod download + + - name: Build + env: + GO111MODULE: "on" + run: go build -v ./... + + - name: Test + env: + GO111MODULE: "on" + run: go test ./...