Skip to content

Commit 849940c

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

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-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: ./composer-dependency-analyzer.yml
11+
12+
phpstan:
13+
uses: ./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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Composer Dependency Analyser
22

33
on:
44
pull_request:
5-
push:
6-
branches: [ 'master' ]
75

86
jobs:
97
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: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: PHPStan
22

33
on:
44
pull_request:
5-
push:
6-
branches:
7-
- master
85

96
jobs:
107
phpstan:

0 commit comments

Comments
 (0)