Skip to content

The attribute 'syntaxCheck' is not allowed. #3

The attribute 'syntaxCheck' is not allowed.

The attribute 'syntaxCheck' is not allowed. #3

Workflow file for this run

# .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 }}."