Skip to content

Add ability to strictly type check route names #299

Add ability to strictly type check route names

Add ability to strictly type check route names #299

Workflow file for this run

name: Test
on:
pull_request:
paths-ignore: ['dist/**', '*.md']
push:
branches: [2.x, main, ci]
paths-ignore: ['dist/**', '*.md']
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.os[0] }}, PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
runs-on: ${{ matrix.os[1] }}
continue-on-error: ${{ matrix.php == 8.4 }}
strategy:
matrix:
os: [[Ubuntu, ubuntu-latest], [Windows, windows-latest]]
php: [8.1, 8.2, 8.3, 8.4]
laravel: [9, 10, 11]
exclude:
- php: 8.1
laravel: 11
include:
- php: 8.4
composer: --ignore-platform-req=php+
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: fileinfo
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- if: matrix.laravel == 9
run: |
composer remove laravel/folio --dev --no-update --no-interaction
composer require pestphp/pest:"1.*" pestphp/pest-plugin-laravel:"1.*" phpunit/phpunit:"9.*" --dev --no-update --no-interaction
- run: composer require laravel/framework:"${{ matrix.laravel }}.*" --no-update --no-interaction
- uses: ramsey/composer-install@v3
with:
composer-options: ${{ matrix.composer }}
- run: vendor/bin/pest
- run: npm ci && npm run build
- run: npm run test