From 0869bca23c42fae58c6ec65dd2516d6b577c8996 Mon Sep 17 00:00:00 2001 From: James Mills Date: Sun, 29 Mar 2020 08:36:14 +1000 Subject: Add Github Workflows (#5) --- .github/workflows/go.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/go.yml (limited to '.github/workflows/go.yml') diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..0fe74f1 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,27 @@ +--- +name: Go +on: + push: + branches: + - master + pull_request: +jobs: + test: + name: Build and Test + strategy: + matrix: + go-version: [1.12.x, 1.13.x] + platform: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + id: go + - name: Checkout + uses: actions/checkout@v1 + - name: Build + run: go build -v . + - name: Test + run: go test -v -race . -- cgit v1.2.3