Fix GitHub Actions tests by adding mock certificates and removing har… #14
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: [ubuntu-latest] | |
| php: [7.4, 8.0, 8.1, 8.2] | |
| laravel: [8.*, 9.*, 10.*] | |
| stability: [prefer-stable] | |
| include: | |
| - laravel: 8.* | |
| testbench: 6.* | |
| - laravel: 9.* | |
| testbench: 7.* | |
| - laravel: 10.* | |
| testbench: 8.* | |
| exclude: | |
| - laravel: 9.* | |
| php: 7.4 | |
| - laravel: 10.* | |
| php: 7.4 | |
| - laravel: 10.* | |
| php: 8.0 | |
| name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} | |
| steps: | |
| - name: 📥 Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: 🔧 Setup PHP ${{ matrix.php }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, openssl | |
| coverage: none | |
| - name: 🛠️ Configure error reporting | |
| run: | | |
| echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
| echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
| - name: 📦 Install Laravel ${{ matrix.laravel }} and dependencies | |
| run: | | |
| composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | |
| composer update --${{ matrix.stability }} --prefer-dist --no-interaction | |
| - name: 🧪 Run PEST test suite | |
| run: vendor/bin/pest |