From c5cee8ce13907132cd43d49ede496062dd268606 Mon Sep 17 00:00:00 2001 From: eheinlein Date: Thu, 16 Jul 2020 13:00:43 -0700 Subject: [PATCH] Add build step to build/test/vet the code --- .github/workflows/go.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..4435568 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,37 @@ +name: Go + +on: + pull_request: + branches: [ master ] + +jobs: + + go-otel-exporter: + runs-on: ubuntu-18.04 + + strategy: + # if one test fails, do not abort the rest + fail-fast: false + matrix: + include: + - go-version: 1.13.x + - go-version: 1.14.x + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... + + - name: Vet + run: go vet ./...