Skip to content

Commit

Permalink
Add build step to build/test/vet the code
Browse files Browse the repository at this point in the history
  • Loading branch information
newrelic-eheinlein committed Jul 16, 2020
1 parent bd1ba39 commit c5cee8c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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 ./...

0 comments on commit c5cee8c

Please sign in to comment.