From ad60e6ad16ff4d161047fc4e47479b56b5fa42c2 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 25 Jan 2020 07:17:37 +0100 Subject: [PATCH] Add GitHub workflow --- .github/workflows/go.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..380e109 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,26 @@ +name: build +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 }} + env: + GO111MODULE: "on" + 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 + run: go mod download + + - name: Build + run: go build -v ./...