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
22 changes: 21 additions & 1 deletion .github/workflows/codeception.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,36 @@ on:
- cron: '0 3 * * 1,3,5'
workflow_dispatch:
push:
paths-ignore:
- 'assets/**'
- 'assets-customized/**'
- 'doc/**'
- 'src/Resources/public/**'
- '**.md'
branches:
- "[0-9]+.[0-9]+"
- "[0-9]+.x"
- "feature-*"
pull_request:
paths-ignore:
- 'assets/**'
- 'assets-customized/**'
- 'doc/**'
- 'src/Resources/public/**'
- '**.md'
types: [opened, synchronize, reopened]

env:
PIMCORE_PROJECT_ROOT: ${{ github.workspace }}
PRIVATE_REPO: ${{ github.event.repository.private }}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
setup-matrix:
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
php_versions: ${{ steps.parse-php-versions.outputs.php_versions }}
matrix: ${{ steps.set-matrix.outputs.matrix }}
Expand Down Expand Up @@ -70,6 +86,10 @@ jobs:
]
}')

if [ "$(echo "$FILTERED_MATRIX_JSON" | jq '.matrix | length')" = "0" ]; then
echo "::error::No matrix configuration found for PHP versions '$php_versions'"
exit 1
fi
ENCODED_MATRIX_JSON=$(echo $FILTERED_MATRIX_JSON | jq -c .)

echo "matrix=${ENCODED_MATRIX_JSON}" >> $GITHUB_OUTPUT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ on:
- 'doc/**'
- 'install/**'
- 'src/Resources/public/**'
- '**.md'
push:
paths-ignore:
- 'assets/**'
- 'assets-customized/**'
- 'doc/**'
- 'install/**'
- 'src/Resources/public/**'
- '**.md'
branches:
- "[0-9]+.[0-9]+"
- "[0-9]+.x"
Expand All @@ -28,12 +30,13 @@ env:
PRIVATE_REPO: ${{ github.event.repository.private }}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
setup-matrix:
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
php_versions: ${{ steps.parse-php-versions.outputs.php_versions }}
phpstan_matrix: ${{ steps.set-matrix.outputs.phpstan_matrix }}
Expand Down Expand Up @@ -69,6 +72,10 @@ jobs:
php_versions="${{ steps.parse-php-versions.outputs.php_versions }}"
MATRIX_JSON=$(cat reusable-workflows/phpstan-configuration/matrix-config.json)
FILTERED_MATRIX_JSON=$(echo "$MATRIX_JSON" | jq --arg php_versions "$php_versions" '{ include: [ .configs[] | select(.php_version == $php_versions) | .matrix[] ] }')
if [ "$(echo "$FILTERED_MATRIX_JSON" | jq '.include | length')" = "0" ]; then
echo "::error::No matrix configuration found for PHP versions '$php_versions'"
exit 1
fi
ENCODED_MATRIX_JSON=$(echo "$FILTERED_MATRIX_JSON" | jq -c .)
echo "phpstan_matrix=$ENCODED_MATRIX_JSON" >> "$GITHUB_OUTPUT"

Expand Down
95 changes: 0 additions & 95 deletions .github/workflows/static-analysis.yaml.bak

This file was deleted.

Loading