diff --git a/.github/workflows/build-dev-branches.yml b/.github/workflows/build-dev-branches.yml index 03d74f3..e458869 100644 --- a/.github/workflows/build-dev-branches.yml +++ b/.github/workflows/build-dev-branches.yml @@ -25,6 +25,11 @@ jobs: packagePAT: ${{ secrets.GITHUB_TOKEN }} run: | ./gradlew clean build --stacktrace --scan --console=plain --no-daemon + ./gradlew codeCoverageReport --console=plain --no-daemon + - name: Upload Coverage Report + uses: codecov/codecov-action@v1 + with: + fail_ci_if_error: true windows-build: runs-on: windows-latest diff --git a/.github/workflows/build-main.yml b/.github/workflows/build-main.yml index f4b0313..776f15b 100644 --- a/.github/workflows/build-main.yml +++ b/.github/workflows/build-main.yml @@ -25,7 +25,16 @@ jobs: packagePublishRepo: ${{ github.repository }} run: | ./gradlew clean build publish --stacktrace --scan --console=plain --no-daemon - ./gradlew codeCoverageReport - - name: Generate Codecov Report + ./gradlew codeCoverageReport --console=plain --no-daemon + - name: Upload Coverage Report uses: codecov/codecov-action@v1 - + with: + fail_ci_if_error: true + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: distribution + path: | + prometheus-extension-ballerina/build/distributions/prometheus-extension-ballerina-*.zip + grafana-dashboard.json + if-no-files-found: error diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 4bc5cfd..c50d444 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -19,9 +19,11 @@ jobs: packagePAT: ${{ secrets.GITHUB_TOKEN }} run: | ./gradlew clean build --stacktrace --scan --console=plain --no-daemon - ./gradlew codeCoverageReport - - name: Generate Codecov Report + ./gradlew codeCoverageReport --console=plain --no-daemon + - name: Upload Coverage Report uses: codecov/codecov-action@v1 + with: + fail_ci_if_error: true windows-build: runs-on: windows-latest