|
1 | | -name: "CI" |
| 1 | +name: CI |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
|
10 | 10 | permissions: |
11 | 11 | contents: read |
12 | 12 |
|
13 | | -jobs: |
14 | | - cs: |
15 | | - name: "Code style" |
16 | | - runs-on: ubuntu-latest |
17 | | - steps: |
18 | | - - name: "Git: checkout" |
19 | | - uses: actions/checkout@v4 |
20 | | - |
21 | | - - name: "PHP: setup 8.3" |
22 | | - uses: shivammathur/setup-php@v2 |
23 | | - with: |
24 | | - php-version: '8.3' |
25 | | - coverage: none |
26 | | - tools: php-cs-fixer |
| 13 | +concurrency: |
| 14 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 15 | + cancel-in-progress: true |
27 | 16 |
|
28 | | - - name: "Composer: validate" |
29 | | - run: composer validate --strict |
30 | | - |
31 | | - - name: "Composer: install" |
32 | | - run: composer install --prefer-dist --no-interaction --no-progress |
33 | | - |
34 | | - - name: "Php-CS-Fixer: version" |
35 | | - run: vendor/bin/php-cs-fixer -V |
| 17 | +jobs: |
36 | 18 |
|
37 | | - - name: "Php-CS-Fixer: check" |
38 | | - run: vendor/bin/php-cs-fixer fix --diff --dry-run |
| 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' |
39 | 25 |
|
40 | 26 | sa: |
41 | | - name: "Static Analysis" |
42 | | - runs-on: ubuntu-latest |
43 | | - steps: |
44 | | - - name: "Git: checkout" |
45 | | - uses: actions/checkout@v4 |
46 | | - |
47 | | - - name: "PHP: setup 8.4" |
48 | | - uses: shivammathur/setup-php@v2 |
49 | | - with: |
50 | | - php-version: '8.4' |
51 | | - tools: phpstan |
52 | | - |
53 | | - - name: "Composer: install" |
54 | | - run: composer install --prefer-dist --no-interaction --no-progress |
55 | | - |
56 | | - - name: "PHPStan: version" |
57 | | - run: phpstan --version |
58 | | - |
59 | | - - name: "PHPStan: analyze" |
60 | | - run: phpstan |
| 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' |
| 31 | + |
0 commit comments