Skip to content

Add tests

Add tests #3

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.3, 8.4]
name: PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, bcmath, soap, intl, gd, exif, iconv
coverage: none
- name: Install dependencies
run: |
composer config allow-plugins.pestphp/pest-plugin true
composer install --prefer-dist --no-interaction
- name: Install Playwright
run: |
npm install playwright@latest
npx playwright install --with-deps
- name: Execute tests
run: vendor/bin/pest