PHP tests, including skipped tests #61
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" | |
- "8.4" | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # 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=app tester-include-skipped | |
- name: Failed test output, if any | |
if: failure() | |
run: for i in $(find ./app/tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done | |
- name: Upload test code coverage | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
if: success() | |
with: | |
name: Test code coverage (PHP ${{ matrix.php-version }}) | |
path: 'app/temp/coverage.html' | |
retention-days: 5 |