Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 32 additions & 33 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,50 @@ name: CI

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
coding-standards:
name: Coding Standards (PHP 8.4)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: PHP 8.4
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
tools: composer, phpstan, php-cs-fixer

- name: Composer cache
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
restore-keys: composer-${{ runner.os }}-

- name: Install deps (no dev-scripts)
run: composer install --no-interaction --prefer-dist --no-progress
cs:
uses: playwright-php/.github/.github/workflows/CS.yml@main
# with:
# php-version: '8.4'
# composer-validate: true
# php-cs-fixer-args: '--diff --dry-run'

- name: PHPStan (max level)
run: phpstan analyse --no-progress
sa:
uses: playwright-php/.github/.github/workflows/SA.yml@main
# with:
# php-version: '8.4'
# phpstan-args: 'analyse --no-progress --memory-limit=-1'

- name: PHP-CS-Fixer (dry-run)
run: |
if [ -f .php-cs-fixer.php ]; then
php-cs-fixer fix --diff --dry-run
else
echo "No .php-cs-fixer.php; skipping."
fi

tests:
name: Tests (PHP ${{ matrix.php }} • ${{ matrix.browser }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']
browser: ['chromium', 'firefox', 'webkit']
php: [
#'8.2',
'8.3',
'8.4'
]
browser: [
'chromium',
# 'firefox',
# 'webkit'
]

env:
PLAYWRIGHT_BROWSER: ${{ matrix.browser }}
Expand All @@ -64,7 +59,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer, phpunit
tools: composer

- name: Composer cache
uses: actions/cache@v4
Expand Down Expand Up @@ -94,6 +89,10 @@ jobs:
- name: Start Mink test server
run: vendor/bin/mink-test-server > mink-test-server.log 2>&1 &
shell: bash

- name: Output server log (debug)
run: tail -n +50 mink-test-server.log || true
if: failure()

- name: Check Mink test server process
run: |
Expand Down