Repository navigation
Build the encode and decode readers the same way #73
Workflow file for this run
This file contains hidden or 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: Throws | |
| on: [push, pull_request] | |
| jobs: | |
| run: | |
| runs-on: ${{ matrix.operating-system }} | |
| strategy: | |
| matrix: | |
| operating-system: [ubuntu-latest] | |
| php-versions: [ '8.4' ] | |
| fail-fast: false | |
| name: Intermediate throws on PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@master | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| tools: 'composer:v2' | |
| extensions: mbstring, posix, dom, soap | |
| coverage: xdebug | |
| - name: Install dependencies | |
| run: composer update --prefer-dist --no-progress --no-suggest | |
| - name: Run the throw counting tests | |
| run: composer test:throws | |
| - name: Report and fail on intermediate throws over the whole suite | |
| run: | | |
| status=0 | |
| composer throws:report > throws-report.txt 2>&1 || status=$? | |
| cat throws-report.txt | |
| { | |
| echo '## Intermediate throws' | |
| echo | |
| echo '```' | |
| sed -n '/^Intermediate throws:/,$p' throws-report.txt | |
| echo '```' | |
| } >> "$GITHUB_STEP_SUMMARY" | |
| exit $status |