Skip to content

Commit

Permalink
Add testing action
Browse files Browse the repository at this point in the history
Run tests on GH Actions
  • Loading branch information
cpuguy83 authored Jul 6, 2020
1 parent 6615cdb commit 1029f53
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

test:
name: Build
strategy:
matrix:
go-versions: [1.12.x, 1.13.x, 1.14.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}

- 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 ./...

0 comments on commit 1029f53

Please sign in to comment.