Skip to content

Frontend CI fixes for Vite #470

Frontend CI fixes for Vite

Frontend CI fixes for Vite #470

Workflow file for this run

name: tests

Check failure on line 1 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
on:
push:
paths-ignore:
- 'docs/**'
paths:
- 'src/**.php'
- 'test/**.php'
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
php: ['8.2', '8.3', '8.4']
laravel: ['10.0', '10.48', '11.0', '11.44', '12.0']
name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Installing PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
extensions: mbstring, json, sqlite3
tools: composer:v2
- name: Lock Package Versions
run: |
composer require "laravel/framework:${{ matrix.laravel }}.*" --no-update -v
- name: Composer Install
run: composer install --prefer-dist --no-progress --no-interaction
- name: Create Database
run: mkdir -p database && touch database/database.sqlite
- name: Run Tests
run: php vendor/bin/phpunit --testdox