Skip to content

Commit 6ee6802

Browse files
committed
flow updated
1 parent d2151ca commit 6ee6802

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ on:
77
- cron: '0 0 * * *'
88

99
jobs:
10-
tests:
10+
static-analysis:
1111
runs-on: ubuntu-latest
1212

1313
strategy:
1414
fail-fast: true
1515
matrix:
1616
php: [8.1, 8.2]
1717

18-
name: Unit tests PHP ${{ matrix.php }}
18+
name: Code analysis with PHPStan PHP ${{ matrix.php }}
1919

2020
steps:
2121
- name: Checkout
@@ -31,18 +31,21 @@ jobs:
3131
- name: Install dependencies
3232
run: composer install
3333

34-
- name: Execute tests
35-
run: vendor/bin/phpunit --verbose
34+
- name: Execute PHPStan analysis
35+
run: vendor/bin/phpstan --xdebug analyze src --level 8
3636

37-
static-analysis:
37+
tests:
3838
runs-on: ubuntu-latest
3939

40+
needs:
41+
- static-analysis
42+
4043
strategy:
4144
fail-fast: true
4245
matrix:
4346
php: [8.1, 8.2]
4447

45-
name: Code analysis with PHPStan PHP ${{ matrix.php }}
48+
name: Unit tests PHP ${{ matrix.php }}
4649

4750
steps:
4851
- name: Checkout
@@ -58,12 +61,15 @@ jobs:
5861
- name: Install dependencies
5962
run: composer install
6063

61-
- name: Execute PHPStan analysis
62-
run: vendor/bin/phpstan --xdebug analyze src --level 8
63-
64+
- name: Execute tests
65+
run: vendor/bin/phpunit --verbose
66+
6467
mutation-tests:
6568
runs-on: ubuntu-latest
6669

70+
needs:
71+
- tests
72+
6773
strategy:
6874
fail-fast: true
6975
matrix:

0 commit comments

Comments
 (0)