[ISSUE #726] Add test module to provide integration test for java cli… #365
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
name: Golang Coverage | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
paths: | |
- 'golang/**' | |
push: | |
branches: | |
- master | |
jobs: | |
calculate-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Golang ${{ matrix.go }} | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Generate coverage report | |
working-directory: ./golang | |
run: go test -coverprofile coverage.out | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./golang/coverage.out | |
flags: golang | |
fail_ci_if_error: true | |
verbose: true |