-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (70 loc) · 2.38 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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 }}
Rector:
needs: GitStatusCheck
name: Rector
if: needs.GitStatusCheck.outputs.shouldRun == 'true'
runs-on: ubuntu-latest
steps:
- name: Rector
uses: EncoreDigitalGroup/ci-workflows/actions/php/rector@v2
with:
branch: "${{ github.ref }}"
repository: "${{ github.repository }}"
Duster:
needs: Rector
name: Duster
uses: EncoreDigitalGroup/ci-workflows/.github/workflows/php_dusterFix.yml@v2
permissions:
contents: write
pull-requests: write
StaticAnalysis:
needs: Duster
name: StaticAnalysis
uses: EncoreDigitalGroup/ci-workflows/.github/workflows/php_larastan.yml@v2
with:
phpVersion: "8.3"
path: "src/"
branch: ${{ github.head_ref }}
Test:
needs: Duster
name: Test
uses: EncoreDigitalGroup/ci-workflows/.github/workflows/php_pest.yml@v2
with:
phpVersion: "8.3"
branch: ${{ github.head_ref }}
enforceCoverage: false
runParallel: true
AutoMerge:
needs: [ StaticAnalysis, Test ]
name: Auto-Merge
uses: EncoreDigitalGroup/ci-workflows/.github/workflows/github_dependabotAutoMerge.yml@v2