Skip to content

Commit 9cda484

Browse files
committed
phan in ci
1 parent 897c69b commit 9cda484

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,19 @@ jobs:
9090
- name: Run psalm
9191
if: ${{ matrix.os != 'windows-latest' && !(matrix.dependencies_level == '--prefer-lowest' && matrix.php_version == '8.5') }}
9292
run: vendor/bin/psalm
93-
# - name: Run phan
94-
# if: ${{ matrix.os != 'windows-latest' }}
95-
# run: vendor/bin/phan
96-
# # AST 1.1 binary for Windows seems to be missing on PECL
97-
# - name: Run phan with polyfill
98-
# if: ${{ matrix.os == 'windows-latest' }}
99-
# run: vendor/bin/phan --allow-polyfill-parser
93+
- name: Install and run phan
94+
if: ${{ matrix.os != 'windows-latest' }}
95+
run: |
96+
rm composer.lock
97+
compsoer require --dev phan/phan
98+
vendor/bin/phan
99+
# AST 1.1 binary for Windows seems to be missing on PECL
100+
- name: Install and run phan with polyfill
101+
if: ${{ matrix.os == 'windows-latest' }}
102+
run: |
103+
rm composer.lock
104+
compsoer require --dev phan/phan
105+
vendor/bin/phan --allow-polyfill-parser
100106
- name: Run tests with coverage
101107
if: ${{ matrix.os != 'windows-latest' && matrix.php_version == '8.1' && matrix.dependencies_level != '--prefer-lowest' }}
102108
run: php vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-cobertura=cobertura.xml --log-junit=junit.xml

0 commit comments

Comments
 (0)