Run tests #1838
This file contains 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, 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 |