The attribute 'syntaxCheck' is not allowed. #3
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
| # .github/workflows/phpunit.yaml | |
| name: phpunit | |
| on: [push, pull_request] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: ['7.2'] | |
| name: PHP ${{ matrix.php }} tests | |
| steps: | |
| - run: echo "This job for ${{ github.ref }} was automatically triggered by a ${{ github.event_name }} event on ${{ runner.os }}." | |
| # Basically git clone | |
| - uses: actions/checkout@v4 | |
| # Use PHP of specific version | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none # disable xdebug, pcov | |
| - name: Install Composer dependencies | |
| uses: php-actions/composer@v6 | |
| with: | |
| php_version: ${{ matrix.php }} | |
| args: --prefer-source | |
| # If we use two steps like this, we can better see if composer or the test failed | |
| - run: vendor/phpunit/phpunit/phpunit | |
| - run: echo "This job's status is ${{ job.status }}." |