Skip to content

Commit

Permalink
Run code coverage test with the master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Jun 29, 2021
1 parent cf48bf6 commit 0b1056f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0b1056f

Please sign in to comment.