Add nullcheck #41
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: CI | |
| on: push | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: [7.4] | |
| steps: | |
| - name: π€ Checkout project | |
| uses: actions/checkout@v3 | |
| - name: π Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| - name: π¦ Install dependencies | |
| run: composer install --no-progress --no-suggest | |
| - name: β Run tests | |
| run: vendor/bin/phpunit | |
| phpstan: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: [7.4] | |
| steps: | |
| - name: π€ Checkout project | |
| uses: actions/checkout@v3 | |
| - name: π Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| - name: π¦ Install dependencies | |
| run: composer install --no-progress --no-suggest | |
| - name: π Run PHPStan | |
| run: vendor/bin/phpstan analyse --memory-limit=512M |