Bump globals from 15.12.0 to 15.13.0 #3865
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: | |
pull_request: | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
php: [8.3, 8.4] | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
options: --entrypoint redis-server | |
name: PHP ${{ matrix.php }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.composer/cache/files | |
key: dependencies-laravel-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, fileinfo, libxml, mbstring, igbinary, msgpack, zstd, lz4, zip, redis, pcntl, pdo, sqlite, pdo_sqlite | |
coverage: none | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
- name: Setup MySQL | |
run: | | |
sudo /etc/init.d/mysql start | |
mysql -u root -proot -e 'CREATE DATABASE IF NOT EXISTS test;' | |
- name: Build application | |
run: | | |
cp .env.ci .env | |
composer install --no-progress --prefer-dist --optimize-autoloader | |
php artisan key:generate | |
php artisan storage:link | |
yarn install && yarn build | |
- name: Clear Config | |
run: php artisan config:clear | |
- name: Execute tests | |
run: | | |
npm run test | |
./vendor/bin/pest |