diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 0114cbe46..5803abdc1 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -46,7 +46,7 @@ jobs: - name: Annotate PR with PHPCS results uses: staabm/annotate-pull-request-from-checkstyle-action@v1 - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && steps.changed-files.outputs.any_changed == 'true' with: files: phpcs-report.xml graceful-warnings: true @@ -54,7 +54,7 @@ jobs: - name: Annotate PR with PHPStan results uses: staabm/annotate-pull-request-from-checkstyle-action@v1 - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && steps.changed-files.outputs.any_changed == 'true' with: files: phpstan-report.xml graceful-warnings: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 36d7f568f..fb53ece87 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -94,3 +94,22 @@ jobs: fail_ci_if_error: false env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + wp-performance: + name: WP Performance Metrics + runs-on: ubuntu-latest + continue-on-error: true + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run WP Performance Tests + uses: swissspidy/wp-performance-action@v2 + with: + plugins: | + ./ + urls: | + / + create-comment: ${{ github.event_name == 'pull_request' }} + print-results: true + upload-artifacts: true