Skip to content

Commit 3b8a07f

Browse files
committed
fix(ci): use phpstan
1 parent 7acbfac commit 3b8a07f

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
45

56
jobs:
67
tests:
@@ -18,6 +19,7 @@ jobs:
1819
uses: shivammathur/setup-php@v2
1920
with:
2021
php-version: ${{ matrix.php }}
22+
tools: phpstan
2123

2224
- name: Validate composer.json and composer.lock
2325
run: composer validate
@@ -27,3 +29,6 @@ jobs:
2729

2830
- name: Run test suite
2931
run: php vendor/bin/codecept run
32+
33+
- name: Execute PHPStan
34+
run: phpstan

.github/workflows/release.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
php: [ 8.2, 8.3, 8.4 ]
12+
php: [8.2, 8.3, 8.4]
1313

1414
steps:
1515
- name: Checkout code
@@ -19,27 +19,20 @@ jobs:
1919
uses: shivammathur/setup-php@v2
2020
with:
2121
php-version: ${{ matrix.php }}
22-
coverage: none
22+
tools: phpstan
2323

2424
- name: Validate composer.json and composer.lock
2525
run: composer validate
2626

2727
- name: Install dependencies
2828
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
2929

30-
- name: Execute Code Sniffer
31-
run: vendor/bin/phpcs
32-
33-
- name: Execute PHP Stan
34-
run: vendor/bin/phpstan
3530

3631
- name: Run test suite
37-
run: |
38-
php -S 127.0.0.1:8000 -t tests/data/app >/dev/null 2>&1 &
39-
php -S 127.0.0.1:8010 -t tests/data/rest >/dev/null 2>&1 &
40-
php vendor/bin/codecept run
41-
32+
run: php vendor/bin/codecept run
4233

34+
- name: Execute PHPStan
35+
run: phpstan
4336
release:
4437
name: Automated release
4538
needs:

0 commit comments

Comments
 (0)