Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actions/php/prepare/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Setup Core V2 Environment
description: Sets up PHP v2

inputs:
working-directory:
description: Where to run
required: false
php:
description: 'PHP Version'
required: false
Expand All @@ -23,10 +26,12 @@ runs:

- name: Validate Composer
shell: bash
working-directory: ${{ inputs.working-directory }}
run: composer validate

- name: Get Composer Cache Directory
shell: bash
working-directory: ${{ inputs.working-directory }}
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
Expand All @@ -41,6 +46,7 @@ runs:

- name: Install Dependencies
uses: nick-invision/retry@v2
working-directory: ${{ inputs.working-directory }}
with:
timeout_minutes: 5
max_attempts: 3
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/reusable-php-checks-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
git config --global core.eol lf

- uses: personaclick/workflow/.github/actions/php/prepare@master
with:
working-directory: ${{ inputs.working-directory }}

- name: Composer Audit
run: composer audit
Expand All @@ -54,6 +56,8 @@ jobs:
git config --global core.eol lf

- uses: personaclick/workflow/.github/actions/php/prepare@master
with:
working-directory: ${{ inputs.working-directory }}

- name: Static Analysis
run: composer linter:check -- --error-format=github --ansi
Expand All @@ -75,6 +79,8 @@ jobs:
git config --global core.eol lf

- uses: personaclick/workflow/.github/actions/php/prepare@master
with:
working-directory: ${{ inputs.working-directory }}

- name: Check Code Style
run: composer phpcs:check
Expand Down Expand Up @@ -113,6 +119,8 @@ jobs:
git config --global core.eol lf

- uses: personaclick/workflow/.github/actions/php/prepare@master
with:
working-directory: ${{ inputs.working-directory }}

- name: Symfony Container Tests
run: composer test:container
Expand Down