Skip to content

Commit

Permalink
Added scripts to composer.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Oct 16, 2023
1 parent 90007af commit d14f6f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ jobs:
command: docker compose exec phpserver composer install --ansi --no-suggest
- run:
name: Lint code.
command: |
docker compose exec phpserver vendor/bin/phpcs
docker compose exec phpserver vendor/bin/phpstan || true
command: docker compose exec phpserver composer lint || true
- run:
name: Run tests.
command: |
docker compose exec phpserver mkdir -p /app/screenshots
docker compose exec phpserver vendor/bin/behat
command: docker compose exec phpserver composer test
- run:
name: Copy artifacts.
command: |
Expand Down
12 changes: 12 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,17 @@
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"lint": [
"phpcs",
"phpstan"
],
"lint:fix": [
"phpcbf"
],
"test": [
"behat"
]
}
}

0 comments on commit d14f6f5

Please sign in to comment.