Skip to content

Run tests

Run tests #1933

Workflow file for this run

name: Run tests
on:
push:
branches: [main, ci]
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: PHP ${{ matrix.php }}, ${{ matrix.dependencies }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
php: ["8.1", "8.2", "8.3"]
dependencies: [lowest, stable]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.json') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.dependencies }}-
${{ runner.os }}-php-${{ matrix.php }}-composer-
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- run: |
composer update --prefer-${{ matrix.dependencies }} --prefer-dist --no-interaction
composer require illuminate/view:* --with-all-dependencies --no-interaction
- run: vendor/bin/phpunit