-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enabling github actions for unit tests
- Loading branch information
1 parent
72c80ce
commit 8a944ad
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
push: | ||
branches: [ master ] | ||
name: ci/github | ||
jobs: | ||
unit: | ||
strategy: | ||
matrix: | ||
go-version: [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: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
go version | ||
go get -u github.com/onsi/ginkgo/ginkgo | ||
go get -u github.com/onsi/gomega/... | ||
ginkgo version | ||
- name: Build | ||
run: make build | ||
- name: Test | ||
run: make test |