@@ -2,55 +2,50 @@ name: CI
22
33on :
44 push :
5+ branches : [ "*" ]
56 pull_request :
7+ branches : [ "*" ]
8+ workflow_dispatch :
9+
10+ permissions :
11+ contents : read
612
713concurrency :
814 group : ${{ github.workflow }}-${{ github.ref }}
915 cancel-in-progress : true
1016
1117jobs :
12- coding-standards :
13- name : Coding Standards (PHP 8.4)
14- runs-on : ubuntu-latest
15- steps :
16- - uses : actions/checkout@v4
17-
18- - name : PHP 8.4
19- uses : shivammathur/setup-php@v2
20- with :
21- php-version : ' 8.4'
22- coverage : none
23- tools : composer, phpstan, php-cs-fixer
24-
25- - name : Composer cache
26- uses : actions/cache@v4
27- with :
28- path : ~/.composer/cache
29- key : composer-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
30- restore-keys : composer-${{ runner.os }}-
3118
32- - name : Install deps (no dev-scripts)
33- run : composer install --no-interaction --prefer-dist --no-progress
19+ cs :
20+ uses : playwright-php/.github/.github/workflows/CS.yml@main
21+ # with:
22+ # php-version: '8.4'
23+ # composer-validate: true
24+ # php-cs-fixer-args: '--diff --dry-run'
3425
35- - name : PHPStan (max level)
36- run : phpstan analyse --no-progress
26+ sa :
27+ uses : playwright-php/.github/.github/workflows/SA.yml@main
28+ # with:
29+ # php-version: '8.4'
30+ # phpstan-args: 'analyse --no-progress --memory-limit=-1'
3731
38- - name : PHP-CS-Fixer (dry-run)
39- run : |
40- if [ -f .php-cs-fixer.php ]; then
41- php-cs-fixer fix --diff --dry-run
42- else
43- echo "No .php-cs-fixer.php; skipping."
44- fi
4532
4633 tests :
4734 name : Tests (PHP ${{ matrix.php }} • ${{ matrix.browser }})
4835 runs-on : ubuntu-latest
4936 strategy :
5037 fail-fast : false
5138 matrix :
52- php : ['8.2', '8.3', '8.4']
53- browser : ['chromium', 'firefox', 'webkit']
39+ php : [
40+ # '8.2',
41+ ' 8.3' ,
42+ ' 8.4'
43+ ]
44+ browser : [
45+ ' chromium' ,
46+ # 'firefox',
47+ # 'webkit'
48+ ]
5449
5550 env :
5651 PLAYWRIGHT_BROWSER : ${{ matrix.browser }}
6459 with :
6560 php-version : ${{ matrix.php }}
6661 coverage : none
67- tools : composer, phpunit
62+ tools : composer
6863
6964 - name : Composer cache
7065 uses : actions/cache@v4
9489 - name : Start Mink test server
9590 run : vendor/bin/mink-test-server > mink-test-server.log 2>&1 &
9691 shell : bash
92+
93+ - name : Output server log (debug)
94+ run : tail -n +50 mink-test-server.log || true
95+ if : failure()
9796
9897 - name : Check Mink test server process
9998 run : |
0 commit comments