PHP tests, including skipped tests #40
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
name: PHP tests, including skipped tests | |
on: | |
schedule: | |
- cron: '45 23 * * 4' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
tester-include-skipped: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- "8.3" | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: shivammathur/setup-php@2e947f1f6932d141d076ca441d0e1e881775e95b # v2 | |
with: | |
coverage: pcov | |
php-version: ${{ matrix.php-version }} | |
- name: Create symlink in /srv/www | |
run: | | |
sudo mkdir --parents /srv/www | |
sudo ln --symbolic $GITHUB_WORKSPACE /srv/www | |
- run: make --directory=site tester-include-skipped | |
- name: Failed test output, if any | |
if: failure() | |
run: for i in $(find ./site/tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done | |
- name: Upload test code coverage | |
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | |
if: success() | |
with: | |
name: Test code coverage (PHP ${{ matrix.php-version }}) | |
path: 'site/temp/coverage.html' | |
retention-days: 5 |