Skip to content

Wip

Wip #143

Workflow file for this run

name: Test
on:
pull_request:
paths-ignore: ['dist/**', '*.md']
push:
branches: [main, next, 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 }}, prefer-${{ matrix.dependencies }}
runs-on: ${{ matrix.os[1] }}
continue-on-error: ${{ matrix.php == '8.3' }}
strategy:
matrix:
os: [[Ubuntu, ubuntu-latest], [Windows, windows-latest]]
php: ['8.1', '8.2', '8.3']
laravel: [8.*, 9.*, 10.*, 11.*]
dependencies: [lowest, highest]
exclude:
- php: '8.1'
laravel: 11.*
- php: '8.3'
laravel: 8.*
include:
- laravel: 8.*
install-laravel: ^8.18.1
testbench: 6.*
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
- php: '8.3'
composer: --ignore-platform-req=php+
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: composer require laravel/framework:"${{ matrix.install-laravel || matrix.laravel }}" --no-update --no-interaction
- uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: ${{ matrix.composer }}
- run: vendor/bin/phpunit --testdox --colors=always
- run: npm ci && npm run build
- run: npm run test
- run: npm run typecheck