Skip to content

Commit 7d14531

Browse files
committed
standalone CI job
1 parent b8cc9fb commit 7d14531

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: PHPStan Printer Test
2+
3+
on:
4+
pull_request: null
5+
push:
6+
branches:
7+
- main
8+
9+
10+
11+
env:
12+
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
13+
COMPOSER_ROOT_VERSION: "dev-main"
14+
15+
jobs:
16+
tests:
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [ubuntu-latest, windows-latest]
21+
php-versions: ['8.2']
22+
23+
runs-on: ${{ matrix.os }}
24+
timeout-minutes: 3
25+
26+
name: PHP ${{ matrix.php-versions }} tests (${{ matrix.os }})
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
-
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php-versions }}
34+
coverage: none
35+
# to display warning when assert() is called, eg: on direct getArgs() on CallLike
36+
# and check against first class callable strlen(...)
37+
ini-values: zend.assertions=1
38+
39+
- uses: "ramsey/composer-install@v3"
40+
41+
- run: vendor/bin/phpunit tests/PhpParser/Printer/PHPStanPrinterTest.php --colors

0 commit comments

Comments
 (0)