Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 29cae25

Browse files
ci: refactor ci to composer script
1 parent 5932390 commit 29cae25

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ jobs:
2727
run: composer install
2828

2929
- name: Lint
30-
run: ./vendor/bin/phpcs --standard=phpcs.xml src/ tests/
31-
32-
- name: PHPMD
33-
run: ./vendor/bin/phpmd . text phpmd.xml --exclude vendor
30+
run: composer lint
3431

3532
- name: Unit Test
36-
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/Unit
33+
run: composer test
3734

3835
- name: Acceptance Test
3936
run: ./vendor/bin/phpunit tests/Acceptance

‎composer.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
"post-install-cmd": [
2828
"php -r \"if (is_dir('.git/hooks/')) {copy('.git-pre-commit', '.git/hooks/pre-commit'); chmod('.git/hooks/pre-commit', 0755);}\""
2929
],
30-
"lint": "phpcs --standard=phpcs.xml .",
31-
"lint-fix": "phpcbf --standard=phpcs.xml ."
30+
"lint": "phpcs --standard=phpcs.xml . && phpmd . text phpmd.xml --exclude vendor",
31+
"lint-fix": "phpcbf --standard=phpcs.xml .",
32+
"test": "XDEBUG_MODE=coverage phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/Unit"
3233
},
3334
"config": {
3435
"allow-plugins": {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /