-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run code coverage test with the master branch
- Loading branch information
1 parent
cf48bf6
commit 0b1056f
Showing
1 changed file
with
22 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 |
---|---|---|
|
@@ -38,3 +38,25 @@ jobs: | |
env: | ||
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }} | ||
TARGET_GIT: "[email protected]:jenkins-zh/jenkins-cli.git" | ||
UnitTest: | ||
name: Test | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Set up Go 1.15 | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.15 | ||
id: go | ||
- name: Check out code into the Go module directory | ||
uses: actions/[email protected] | ||
- name: Test | ||
run: | | ||
make test | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.out | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: true |