Skip to content

Commit 571b3dd

Browse files
committed
Use developer-tools from test-framework
1 parent 4111879 commit 571b3dd

File tree

3 files changed

+46
-932
lines changed

3 files changed

+46
-932
lines changed

.github/workflows/php.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,29 @@ jobs:
7070
run: composer install --no-progress --prefer-dist --optimize-autoloader
7171

7272
- name: PHP Code Sniffer
73-
run: php vendor/bin/phpcs
73+
run: php vendor/simplesamlphp/simplesamlphp-test-framework/tools/phpcs
7474

7575
- name: Psalm
7676
continue-on-error: true
7777
run: |
78-
php vendor/bin/psalm \
78+
php vendor/simplesamlphp/simplesamlphp-test-framework/tools/psalm \
7979
-c psalm.xml \
8080
--show-info=true \
8181
--shepherd \
8282
--php-version=${{ steps.setup-php.outputs.php-version }}
8383
8484
- name: Psalm (testsuite)
8585
run: |
86-
php vendor/bin/psalm \
86+
php vendor/simplesamlphp/simplesamlphp-test-framework/tools/psalm \
8787
-c psalm-dev.xml \
8888
--show-info=true \
8989
--shepherd \
9090
--php-version=${{ steps.setup-php.outputs.php-version }}
9191
9292
- name: Psalter
9393
run: |
94-
php vendor/bin/psalter \
94+
php vendor/simplesamlphp/simplesamlphp-test-framework/tools/psalm \
95+
--alter \
9596
--issues=UnnecessaryVarAnnotation \
9697
--dry-run \
9798
--php-version=${{ steps.setup-php.outputs.php-version }}
@@ -185,11 +186,11 @@ jobs:
185186

186187
- name: Run unit tests with coverage
187188
if: ${{ matrix.php-versions == '8.1' }}
188-
run: ./vendor/bin/phpunit
189+
run: vendor/simplesamlphp/simplesamlphp-test-framework/tools/phpunit
189190

190191
- name: Run unit tests (no coverage)
191192
if: ${{ matrix.php-versions != '8.1' }}
192-
run: ./vendor/bin/phpunit --no-coverage
193+
run: vendor/simplesamlphp/simplesamlphp-test-framework/tools/phpunit --no-coverage
193194

194195
- name: Save coverage data
195196
if: ${{ matrix.php-versions == '8.1' }}
@@ -246,7 +247,7 @@ jobs:
246247
run: composer install --no-progress --prefer-dist --optimize-autoloader
247248

248249
- name: Run unit tests
249-
run: ./vendor/bin/phpunit --no-coverage
250+
run: vendor/simplesamlphp/simplesamlphp-test-framework/tools/phpunit --no-coverage
250251

251252
coverage:
252253
name: Code coverage

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787

8888
"mikey179/vfsstream": "~1.6",
8989
"simplesamlphp/simplesamlphp-module-adfs": "dev-master",
90-
"simplesamlphp/simplesamlphp-test-framework": "^1.3.2",
90+
"simplesamlphp/simplesamlphp-test-framework": "^1.4.0",
9191
"simplesamlphp/xml-security": "^1.5.0"
9292
},
9393
"suggest": {

0 commit comments

Comments
 (0)