Skip to content

Commit

Permalink
Add github actions for go fmt, test, build
Browse files Browse the repository at this point in the history
Signed-off-by: Marina Moore <[email protected]>
  • Loading branch information
mnm678 committed Nov 8, 2021
1 parent 2883bc0 commit 945a495
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflow/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

on: [push, pull_request]

jobs:

build:
strategy:
matrix:
go: ['1.17.x', '1.16.x', '1.15.x']
os: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Format
run: go fmt ./...

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

0 comments on commit 945a495

Please sign in to comment.