Skip to content

Commit 7730292

Browse files
committed
Add new job for testing without PHPUnit
1 parent 7bbf81c commit 7730292

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/php.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,47 @@ jobs:
114114
cd ~/drupal
115115
COMPOSER_MEMORY_LIMIT=-1 composer require drupal/token drupal/blazy
116116
./vendor/bin/phpstan analyze web/modules/contrib/blazy --no-progress || if (($? == 255)); then false; else true; fi
117+
build_integration_no_phpunit:
118+
continue-on-error: ${{ matrix.experimental }}
119+
runs-on: "ubuntu-latest"
120+
name: "Build Integration (No PHPUnit) | PHP ${{ matrix.php-version }} | Drupal ${{ matrix.drupal }}"
121+
strategy:
122+
matrix:
123+
experimental: [false]
124+
php-version:
125+
- "7.4"
126+
drupal:
127+
- "^8.9"
128+
- "^9.0"
129+
steps:
130+
- name: "Checkout"
131+
uses: "actions/checkout@v2"
132+
- name: "Install PHP"
133+
uses: "shivammathur/setup-php@v2"
134+
with:
135+
coverage: "none"
136+
php-version: "${{ matrix.php-version }}"
137+
tools: composer:v2
138+
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv
139+
- name: Setup Drupal
140+
uses: bluehorndigital/[email protected]
141+
with:
142+
version: ${{ matrix.drupal }}
143+
path: ~/drupal
144+
- name: "Remove PHPUnit"
145+
run: |
146+
cd ~/drupal
147+
composer --dev remove phpspec/prophecy-phpunit drupal/core-dev
148+
- name: "require phpstan-drupal"
149+
run: |
150+
cd ~/drupal
151+
COMPOSER_MEMORY_LIMIT=-1 composer require mglaman/phpstan-drupal *@dev
152+
cp $GITHUB_WORKSPACE/tests/fixtures/config/drupal-phpstan.neon phpstan.neon
153+
- name: "Test core/install.php"
154+
run: |
155+
cd ~/drupal
156+
./vendor/bin/phpstan analyze web/core/install.php --debug
157+
- name: "Test no crash"
158+
run: |
159+
cd ~/drupal
160+
./vendor/bin/phpstan analyze web/core/modules/dynamic_page_cache --debug || if (($? == 255)); then false; else true; fi

0 commit comments

Comments
 (0)