Skip to content

Commit b01f705

Browse files
committed
Update workflow to use print-test script
Replaces the 'print' script with 'print-test' in the GitHub Actions workflow. Adds the 'print-test' script to composer.json to run Pint in test mode with the PSR-12 preset.
1 parent c10e7ea commit b01f705

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
run: composer run-script test
4040

4141
- name: Run print
42-
run: composer run-script print
42+
run: composer run-script print-test

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"scripts": {
3535
"test": "vendor/bin/phpunit",
36+
"print-test": "vendor/bin/pint --preset psr12 --test",
3637
"print": "vendor/bin/pint --preset psr12"
3738
},
3839
"minimum-stability": "stable"

0 commit comments

Comments
 (0)