diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-04-06 02:26:56 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-04-06 02:26:56 +0300 |
commit | ce14c1454444400c1becd6da86cd503842577c03 (patch) | |
tree | 6a5826a7a5437f2f673c8184de7ed042c3fa411a /.github/workflows | |
parent | 9de0257c37645a676c8a1876e54265b1de5de49e (diff) | |
parent | cd1bef6c708b45e66606b0131b5031a3a77b3d8e (diff) |
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/tests.yml | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index df79eaa7f1..cd9c27e407 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -78,6 +78,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + # Fetch some commits for Scrutinizer coverage upload + fetch-depth: 15 - name: Install gettext run: sudo apt-get install -y gettext @@ -109,15 +112,17 @@ jobs: - name: Send coverage to Scrutinizer uses: sudo-bot/action-scrutinizer@latest - # Upload can fail on forks - continue-on-error: true + # Do not run this step on forked versions of the main repository (example: contributor forks) + if: github.repository == 'phpmyadmin/phpmyadmin' with: - cli-args: "--format=php-clover build/logs/clover.xml" + cli-args: "--format=php-clover build/logs/clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}" - name: Send coverage to Codacy + uses: codacy/codacy-coverage-reporter-action@v1 + # Do not run this step on forked versions of the main repository (example: contributor forks) + if: github.repository == 'phpmyadmin/phpmyadmin' # Upload can fail on forks or if the secret is missing continue-on-error: true - uses: codacy/codacy-coverage-reporter-action@master with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} coverage-reports: build/logs/clover.xml @@ -134,6 +139,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + # Fetch some commits for Scrutinizer coverage upload + fetch-depth: 15 - name: Install gettext run: sudo apt-get install -y gettext @@ -164,15 +172,17 @@ jobs: - name: Send coverage to Scrutinizer uses: sudo-bot/action-scrutinizer@latest - # Upload can fail on forks - continue-on-error: true + # Do not run this step on forked versions of the main repository (example: contributor forks) + if: github.repository == 'phpmyadmin/phpmyadmin' with: - cli-args: "--format=php-clover build/logs/clover.xml" + cli-args: "--format=php-clover build/logs/clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}" - name: Send coverage to Codacy + uses: codacy/codacy-coverage-reporter-action@v1 + # Do not run this step on forked versions of the main repository (example: contributor forks) + if: github.repository == 'phpmyadmin/phpmyadmin' # Upload can fail on forks or if the secret is missing continue-on-error: true - uses: codacy/codacy-coverage-reporter-action@master with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} coverage-reports: build/logs/clover.xml |