Feature laravel13 #101
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: run-tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| # Nova registry auth uses repo secrets; unavailable on pull requests from forks. | |
| test: | |
| if: ${{ github.repository == 'codebar-ag/laravel-flysystem-cloudinary-nova' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| max-parallel: 1 | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| php: [ 8.3, 8.4, 8.5 ] | |
| laravel: [ 13.* ] | |
| stability: [ prefer-lowest, prefer-stable ] | |
| name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6.0.2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@2.37.0 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo | |
| coverage: none | |
| - name: Setup problem matchers | |
| run: | | |
| echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
| echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
| - name: Apply Nova license | |
| run: composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_LICENSE_KEY }} | |
| - name: Install dependencies | |
| run: | | |
| composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update | |
| composer update --${{ matrix.stability }} --prefer-dist --no-interaction | |
| - name: Execute tests | |
| run: | | |
| cp phpunit.xml.dist phpunit.xml | |
| vendor/bin/pest --no-coverage | |
| - name: Store Log Artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Store report artifacts | |
| path: ./vendor/orchestra/testbench-core/laravel/storage/logs |