Skip to content

Commit

Permalink
Merge pull request #3 from google:s/add-github-actions
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 433887860
  • Loading branch information
copybara-github committed Mar 11, 2022
2 parents ba044df + b6bad9d commit bb3e62c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test
on: [push, pull_request]
jobs:

build:
name: Build and Test
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.17
id: go

- name: Check out code
uses: actions/checkout@v1

- name: Get dependencies
run: |
go mod download
- name: Build
run: |
go build ./...
- name: Test
run: |
go test ./...

0 comments on commit bb3e62c

Please sign in to comment.