Skip to content

Commit 4bf54f2

Browse files
committed
Use shared jobs
1 parent 5f30f3d commit 4bf54f2

1 file changed

Lines changed: 16 additions & 45 deletions

File tree

.github/workflows/CI.yml

Lines changed: 16 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CI"
1+
name: CI
22

33
on:
44
push:
@@ -10,51 +10,22 @@ on:
1010
permissions:
1111
contents: read
1212

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
2716

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:
3618

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'
3925

4026
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

Comments
 (0)