forked from go-zookeeper/zk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is the first step in moving from TravisCI to Github Actions. So far this will run unit tests and report to codecov.
- Loading branch information
Showing
1 changed file
with
36 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,36 @@ | ||
name: unittest | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
unittest: | ||
name: unittest | ||
strategy: | ||
matrix: | ||
zk-version: [3.4.14, 3.5.6] | ||
go-version: [1.11.x, 1.12.x, 1.13.x] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.9 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup code | ||
run: make setup ZK_VERSION=${{ matrix.zk-version }} | ||
|
||
- name: Test code | ||
run: make test | ||
|
||
- name: Upload code coverage | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
file: ./profile.cov |