From 7b03ec7a83448ea6af349801e905839363d4e655 Mon Sep 17 00:00:00 2001 From: Ben Kraft Date: Fri, 27 Mar 2020 16:05:00 -0700 Subject: [PATCH] Set up github actions --- .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..eea303b --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,33 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.13', '1.14' ] + + steps: + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Run tests + run: | + go test -v ./... + + - name: Run example + run: | + go run ./example/cmd/example/main.go benkraft