Skip to content

Update GitHub Workflows #9

Update GitHub Workflows

Update GitHub Workflows #9

Workflow file for this run

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:
path: 'src/'
branch: ${{ github.head_ref }}
Test:
needs: Duster
name: Test
uses: EncoreDigitalGroup/ci-workflows/.github/workflows/php_pest.yml@v2
with:
branch: ${{ github.head_ref }}
runParallel: true
AutoMerge:
needs: [ StaticAnalysis, Test ]
name: Auto-Merge
uses: EncoreDigitalGroup/ci-workflows/.github/workflows/github_dependabotAutoMerge.yml@v2