Skip to content

Commit

Permalink
ci update
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybrad committed Nov 28, 2022
1 parent 82f20c7 commit b93be6e
Show file tree
Hide file tree
Showing 9 changed files with 2,215 additions and 1,427 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/ci.yml
Expand Up @@ -4,29 +4,21 @@ on:
push:
branches:
- main
- v2
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
ecs:
name: ECS
uses: craftcms/.github/.github/workflows/ecs.yml@v1
ci:
name: ci
uses: craftcms/.github/.github/workflows/ci.yml@v3
with:
php_version: '8.0'
phpstan:
name: PHPStan
uses: craftcms/.github/.github/workflows/phpstan.yml@v1
with:
php_version: '8.0'
notify-slack:
name: Notify Slack
needs: [ ecs, phpstan ]
if: ${{ always() }}
uses: craftcms/.github/.github/workflows/notify-slack.yml@v1
with:
success: ${{ needs.ecs.result == 'success' && needs.phpstan.result == 'success' }}
failure_text_prefix: <!subteam^SGFL9NKNZ>
craft_version: '4'
jobs: '["ecs", "phpstan", "prettier"]'
notify_slack: true
slack_subteam: <!subteam^SGFL9NKNZ>
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
slack_webhook_url: ${{ secrets.SLACK_PLUGIN_WEBHOOK_URL }}
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@
*.DS_Store
*Thumbs.db
/vendor
node_modules
7 changes: 7 additions & 0 deletions .lintstagedrc.json
@@ -0,0 +1,7 @@
{
"**/*.php": [
"./vendor/bin/ecs check --ansi --fix",
"./vendor/bin/phpstan analyse"
],
"*": "prettier --ignore-unknown --write"
}
10 changes: 10 additions & 0 deletions .prettierignore
@@ -0,0 +1,10 @@
*.md
*.php
composer.lock
cpresources/*
lib/*
src/templates/*
src/web/assets/**/dist/*
tests/_craft/*
vendor/*
.ddev/*
5 changes: 5 additions & 0 deletions .prettierrc.json
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"bracketSpacing": false,
"vueIndentScriptAndStyle": true
}

0 comments on commit b93be6e

Please sign in to comment.