Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,41 @@
- name: run integration testing
if: runner.os != 'Windows'
run: /bin/bash .ci/ci_check.sh

coverage:
name: coverage
runs-on: ubuntu-22.04
continue-on-error: true
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 5
- uses: actions/cache@v3
id: deps_cache
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.m2/repository
key: coverage-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }}
restore-keys: |
coverage-${{ github.base_ref }}-
coverage-
- name: install Ubuntu dependencies
run: |
sudo apt update && sudo apt install -y git curl libssl-dev build-essential
- name: Set up JDK 1.8.0.382
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8.0.382'
- name: run unit tests with coverage
run: /bin/bash gradlew test jacocoTestReport
- name: upload coverage to Codecov
uses: codecov/codecov-action@v4

Check failure on line 87 in .github/workflows/workflow.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=FISCO-BCOS_java-sdk&issues=AZ7zP5jx5ZPmqghFQNXD&open=AZ7zP5jx5ZPmqghFQNXD&pullRequest=958
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/reports/jacoco/test/jacocoTestReport.xml
flags: unittest
fail_ci_if_error: false
verbose: true
Loading