Skip to content

Commit 341b0f4

Browse files
committed
New workflow
1 parent 18dfb1f commit 341b0f4

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@ on:
66
- main
77
pull_request:
88
jobs:
9-
call-workflow:
10-
uses: craftcms/.github/.github/workflows/ci.yml@v1
9+
ecs:
10+
name: ECS
11+
uses: craftcms/.github/.github/workflows/ecs.yml@v1
12+
phpstan:
13+
name: PHPStan
14+
uses: craftcms/.github/.github/workflows/phpstan.yml@v1
15+
notify-slack:
16+
name: Notify Slack
17+
needs: [ ecs, phpstan ]
18+
uses: craftcms/.github/.github/workflows/notify-slack.yml@v1
1119
with:
12-
run_ecs: true
13-
run_phpstan: true
20+
success: ${{ needs.ecs.result == 'success' && needs.phpstan.result == 'success' }}
1421
secrets:
15-
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
slack_webhook_url: ${{ secrets.SLACK_PLUGIN_WEBHOOK_URL }}
24+
slack_group_id: ${{ secrets.SLACK_GROUP_ID }}

0 commit comments

Comments
 (0)