-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 1.9 KB
/
_pullRequest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Pull Request
on:
pull_request_target:
workflow_dispatch:
concurrency:
group: ${{ github.repository }}-${{ github.event.pull_request.number }}-pullRequest
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
jobs:
GitStatusCheck:
name: GitStatusCheck
runs-on: ubuntu-latest
outputs:
shouldRun: ${{ steps.GitStatusCheck.outputs.shouldRun }}
steps:
- name: GitStatusCheck
id: GitStatusCheck
uses: EncoreDigitalGroup/ci-workflows/actions/php/gitStatusCheck@v2
FormatTitle:
name: FormatTitle
runs-on: ubuntu-latest
steps:
- name: FormatTitle
uses: EncoreDigitalGroup/ci-workflows/actions/github/formatPullRequestTitle@v2
with:
branch: ${{ github.head_ref }}
pullRequestNumber: ${{ github.event.number }}
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
CodeStyle:
needs: GitStatusCheck
name: CodeStyle
if: needs.GitStatusCheck.outputs.shouldRun == 'true'
runs-on: ubuntu-latest
steps:
- name: CodeStyle
uses: EncoreDigitalGroup/ci-workflows/actions/php/codeStyle@v2
with:
branch: "${{ github.head_ref }}"
repository: "${{ github.repository }}"
StaticAnalysis:
needs: CodeStyle
name: StaticAnalysis
uses: EncoreDigitalGroup/ci-workflows/.github/workflows/php_larastan.yml@v2
with:
phpVersion: '8.3'
path: 'src/'
branch: ${{ github.head_ref }}
AutoMerge:
needs: [ StaticAnalysis ]
name: Auto-Merge
uses: EncoreDigitalGroup/ci-workflows/.github/workflows/github_dependabotAutoMerge.yml@v2