Skip to content

Commit

Permalink
feat: GitHub Actions workflow for tests (#12)
Browse files Browse the repository at this point in the history
* feat: GitHub Actions workflow for tests.

* chore: Drop protoc until we can sort out the generation checks.

* chore: Remove the tidy check for now.
  • Loading branch information
brettbuddin committed Jun 17, 2020
1 parent d1001d7 commit ea3be64
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
go-test:
name: Go Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go

- name: Checkout
uses: actions/checkout@v2

# TODO(brett): This keeps seeing adding "google.golang.org/protobuf v1.23.0"
# and failing.
# - name: Verify Tidy
# run: |
# make RELEASE=1
# go mod tidy
# git diff --exit-code

- name: Test
run: go test -v ./...
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ require (
golang.org/x/tools v0.0.0-20200522201501-cb1345f3a375 // indirect
google.golang.org/genproto v0.0.0-20200521103424-e9a78aa275b7 // indirect
google.golang.org/grpc v1.29.1
google.golang.org/protobuf v1.23.0
gopkg.in/yaml.v2 v2.2.3 // indirect
)

Expand Down

0 comments on commit ea3be64

Please sign in to comment.