fix: grid template didnt applied for lightbox #10
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: | |
- master | |
paths: | |
- "**/*.php" | |
pull_request: | |
jobs: | |
php-tests: | |
runs-on: ubuntu-22.04 | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
strategy: | |
fail-fast: true | |
matrix: | |
php-version: [8.1, 8.2, 8.3] | |
laravel-version: [10.*] | |
env: | |
DB_DATABASE: testing | |
DB_USERNAME: root | |
DB_PASSWORD: password | |
name: PHP ${{ matrix.php-version }} | Laravel - ${{ matrix.laravel-version }} | |
services: | |
mysql: | |
image: mysql:latest | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: false | |
MYSQL_DATABASE: testing | |
MYSQL_ROOT_PASSWORD: password | |
ports: | |
- 3306/tcp | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- uses: actions/checkout@v4 | |
# see https://github.com/shivammathur/setup-php | |
- name: Prepare PHP test environment | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer:v2 | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Cache composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-php-${{ matrix.php-version }}-laravel-${{ matrix.laravel-version }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Install dependencies | |
run: | | |
composer require "laravel/framework:${{ matrix.laravel-version }}" "orchestra/testbench:8.*" --no-interaction --no-update | |
composer update --prefer-dist --no-interaction | |
- name: Running tests | |
run: ./vendor/bin/pest --bail | |
env: | |
DB_PORT: ${{ job.services.postgres.ports[3306] }} # only for MySQL |