Run the command below and everything will be done automagically:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/elitedevsquad/devsquad-setup/master/run)"
After running the command, please add these scripts in your composer.json file:
{
"scripts": {
"fix": [
"./vendor/bin/php-cs-fixer fix --using-cache=no --verbose"
],
"verify": [
"./vendor/bin/php-cs-fixer fix --dry-run --using-cache=no --verbose --stop-on-violation",
"./vendor/bin/phpcs --standard=phpcs.xml",
"./vendor/bin/phpmd app text ./phpmd.xml",
"./vendor/bin/phpunit"
]
}
}
The instructions below should be executed only one time by the repository's admin.
Use this link https://teamdevsquad.slack.com/apps/A0F7XDUAZ-incoming-webhooks?tab=more_info to create a new incoming webhook, and copy the Webhook URL that was generated, as it will be used later.
Access the Vapor's account for this project and get an API Token. You can access this link https://vapor.laravel.com/app/account/general and click on the API tab, so you can create a new one. Please, copy it!
Please, create this GitHub Secrets:
- VAPOR_API_TOKEN
- SLACK_WEBHOOK
Without these secrets the deployment actions and notifications won't work properly!