From 21ea2da13ef9d146b82bc7dae9c3c5f4afbe4abb Mon Sep 17 00:00:00 2001 From: lucperkins Date: Wed, 20 May 2020 16:45:59 -0700 Subject: [PATCH] Add build and test Action --- .github/workflows/build-and-test.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build-and-test.yaml diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml new file mode 100644 index 0000000..2b608fe --- /dev/null +++ b/.github/workflows/build-and-test.yaml @@ -0,0 +1,20 @@ +name: Build and test +on: [push, pull_request] +jobs: + build_and_test: + strategy: + matrix: + go-version: [1.14.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: Build + run: go build -v ./... + - name: Test + run: go test -v -p 1 ./...