Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
test out GH actions (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss authored Jan 15, 2021
1 parent 1fe605d commit 000792a
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run tests
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
GO111MODULE: on
jobs:
test:
strategy:
matrix:
go-version: [1.11.x, 1.15.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:

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

- name: Checkout code
uses: actions/checkout@v2

- name: Vet and build
run: |
go vet ./...
go build ./...
- name: Install tools
run: |
go install github.com/golang/mock/mockgen
GO111MODULE=off go get -u golang.org/x/lint/golint
- name: Run test scripts
run: |
./ci/check_go_fmt.sh
./ci/check_go_lint.sh
./ci/check_go_generate.sh
./ci/check_go_mod.sh
./ci/check_panic_handling.sh
- name: Run Go tests
run: go test -v ./...

0 comments on commit 000792a

Please sign in to comment.