-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add pull-request/write permission to app-test-coverage.yml and di…
…sabled step with TODO
- Loading branch information
1 parent
82ddbd7
commit 34400ff
Showing
1 changed file
with
13 additions
and
10 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 |
---|---|---|
|
@@ -28,6 +28,8 @@ on: | |
jobs: | ||
test-app: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -77,13 +79,14 @@ jobs: | |
if: success() || failure() | ||
run: cat coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY | ||
|
||
- name: Publish code coverage report as PR comment | ||
uses: madrapps/[email protected] | ||
if: github.event_name == 'pull_request' && (success() || failure()) | ||
with: | ||
paths: | | ||
${{ github.workspace }}/build/reports/xml/jacoco | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
min-coverage-overall: 80 | ||
min-coverage-changed-files: 80 | ||
title: Coverage Report | ||
# TODO Ask Committers to allow writes from PRs before enabling again | ||
# - name: Publish code coverage report as PR comment | ||
# uses: madrapps/[email protected] | ||
# if: github.event_name == 'pull_request' && (success() || failure()) | ||
# with: | ||
# paths: | | ||
# ${{ github.workspace }}/build/reports/xml/jacoco | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# min-coverage-overall: 80 | ||
# min-coverage-changed-files: 80 | ||
# title: Coverage Report |