Merge pull request #80 from laradumps/drop-php81 #399
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: LaraDumpsCore Tests | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - '*.md' | |
| push: | |
| paths-ignore: | |
| - '*.md' | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| php: [ 8.5, 8.4, 8.3, 8.2 ] | |
| name: "PHP: ${{ matrix.php }} / ${{ matrix.os }}" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP, with composer and extensions | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo | |
| tools: composer:v2 | |
| coverage: none | |
| - name: Cache composer dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: $(composer config cache-files-dir) | |
| key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | |
| restore-keys: dependencies-php-${{ matrix.php }}-composer- | |
| - name: Install Composer dependencies | |
| run: | | |
| composer install | |
| composer update --prefer-stable --no-interaction | |
| - name: Code Style 👨🏭 | |
| run: composer test:pint | |
| if: runner.os == 'Linux' && matrix.php == '8.3' | |
| env: | |
| PHP_CS_FIXER_IGNORE_ENV: 1 | |
| - name: PHPStan ⚗️ | |
| run: composer test:types | |
| if: runner.os == 'Linux' && matrix.php == '8.3' | |
| - name: Pest Tests 👨🏻🔬 | |
| run: composer test:sqlite |