Skip to content

Commit b0d471d

Browse files
committed
Add checks workflow and update triggers for existing workflows
1 parent 03259bd commit b0d471d

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

.github/workflows/checks.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
composer-dependency-analyser:
10+
uses: ./.github/workflows/composer-dependency-analyser.yml
11+
12+
phpstan:
13+
uses: ./.github/workflows/phpstan.yml

.github/workflows/code-style.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Code Style
22

3-
on: [ pull_request_target ]
3+
on:
4+
pull_request_target:
45

56
jobs:
67
php-cs-fixer:

.github/workflows/composer-dependency-analyser.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Composer Dependency Analyser
22

33
on:
4+
workflow_call:
45
pull_request:
5-
push:
6-
branches: [ 'master' ]
76

87
jobs:
98
composer-require-checker:

.github/workflows/docker.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ name: Docker Image
33
on:
44
workflow_dispatch: ~
55
workflow_run:
6-
workflows: [ "Composer Dependency Analyser", "PHPStan" ]
6+
workflows: [ "Checks" ]
77
branches: [ "master" ]
88
types:
99
- completed
1010

11+
permissions:
12+
contents: read
13+
packages: write
14+
1115
concurrency:
1216
group: docker-image-build
1317
cancel-in-progress: true

.github/workflows/phpstan.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: PHPStan
22

33
on:
4+
workflow_call:
45
pull_request:
5-
push:
6-
branches:
7-
- master
86

97
jobs:
108
phpstan:

0 commit comments

Comments
 (0)