Skip to content

Commit 6d5492d

Browse files
zahergsimensen
andauthored
Add scripts section to composer (#13)
* add scripts section Co-authored-by: Beau Simensen <[email protected]>
1 parent 41529be commit 6d5492d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: mheap/phpunit-matcher-action@v1
3636

3737
- name: PHPUnit
38-
run: ./vendor/bin/phpunit --coverage-text --teamcity
38+
run: composer run test -- --coverage-text --teamcity
3939

4040
phpcs:
4141
name: phpcs
@@ -59,4 +59,4 @@ jobs:
5959
composer-options: "--no-progress --prefer-dist --optimize-autoloader"
6060

6161
- name: phpcs
62-
run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr
62+
run: composer run style:check -- -q --report=checkstyle | cs2pr

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
"Dflydev\\DotAccessConfiguration": "src"
3636
}
3737
},
38+
"scripts": {
39+
"style:fix": "@php ./vendor/bin/phpcsf",
40+
"style:check": "@php ./vendor/bin/phpcs",
41+
"test" : "@php ./vendor/bin/phpunit"
42+
},
3843
"extra": {
3944
"branch-alias": {
4045
"dev-master": "1.0-dev"

0 commit comments

Comments
 (0)