Add cuid2 validation rule (string, rule object and Rule macro) #6
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] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.2', '8.3', '8.4', '8.5'] | |
| laravel: ['12.*', '13.*'] | |
| stability: [prefer-stable] | |
| include: | |
| - laravel: '12.*' | |
| testbench: '10.*' | |
| - laravel: '13.*' | |
| testbench: '11.*' | |
| exclude: | |
| # Laravel 13 requires PHP 8.3+ | |
| - laravel: '13.*' | |
| php: '8.2' | |
| name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, gmp | |
| coverage: none | |
| - name: Install dependencies | |
| run: | | |
| # Don't let a security advisory on an older stable release block the CI matrix. | |
| composer config policy.advisories.block false | |
| composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --dev --no-interaction --no-update | |
| composer update --${{ matrix.stability }} --prefer-dist --no-interaction | |
| - name: Execute tests | |
| run: vendor/bin/phpunit |