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
12 changes: 3 additions & 9 deletions .github/actions/php/prepare/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ inputs:
description: 'PHP Extensions'
required: false
default: 'apcu, amqp, protobuf, intl, gmp, sockets, zip, opcache, pdo_pgsql'
work-directory:
description: 'Working Directory'
required: false
default: 'packages/core-v2'

runs:
using: composite

steps:
- name: Setup PHP ${{ inputs.php }}
uses: shivammathur/setup-php@v2
Expand All @@ -25,12 +22,10 @@ runs:
php-version: ${{ inputs.php }}

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

- name: Get Composer Cache Directory
working-directory: ${{ inputs.work-directory }}
shell: bash
id: composer-cache
run: |
Expand All @@ -40,15 +35,14 @@ runs:
uses: actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: core-v2-composer-${{ hashFiles(format('{0}/composer.lock', inputs.work-directory)) }}
key: core-v2-composer-${{ hashFiles('composer.lock')) }}
restore-keys: |
${{ runner.os }}-core-v2-composer-
core-v2-composer-

- name: Install Dependencies
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
command: |
cd ${{ inputs.work-directory }}
composer install --prefer-dist --no-interaction --no-progress
8 changes: 0 additions & 8 deletions .github/workflows/reusable-php-checks-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ jobs:
- uses: rees46/workflow/.github/actions/php/prepare@master

- name: Composer Audit
working-directory: ${{ inputs.working-directory }}
run: composer audit

- name: Security Advisories
working-directory: ${{ inputs.working-directory }}
run: composer require --dev roave/security-advisories:dev-latest

phpstan:
Expand All @@ -58,7 +56,6 @@ jobs:
- uses: rees46/workflow/.github/actions/php/prepare@master

- name: Static Analysis
working-directory: ${{ inputs.working-directory }}
run: composer linter:check -- --error-format=github --ansi

php-cs-fixer:
Expand All @@ -80,7 +77,6 @@ jobs:
- uses: rees46/workflow/.github/actions/php/prepare@master

- name: Check Code Style
working-directory: ${{ inputs.working-directory }}
run: composer phpcs:check

tests:
Expand Down Expand Up @@ -119,17 +115,13 @@ jobs:
- uses: rees46/workflow/.github/actions/php/prepare@master

- name: Symfony Container Tests
working-directory: ${{ inputs.working-directory }}
run: composer test:container

- name: Unit Tests
working-directory: ${{ inputs.working-directory }}
run: composer test:unit

- name: Integration Tests
working-directory: ${{ inputs.working-directory }}
run: composer test:integration

- name: Functional Tests
working-directory: ${{ inputs.working-directory }}
run: composer test:feature