Skip to content

Always place the cancel button before confirm in jeeDialog footers #512

Always place the cancel button before confirm in jeeDialog footers

Always place the cancel button before confirm in jeeDialog footers #512

Workflow file for this run

name: PHPStan
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
phpstan:
runs-on: ubuntu-latest
# define every php version to test
strategy:
# do not stop at first fail
fail-fast: false
matrix:
php: [7.4, 8.2]
steps:
- uses: actions/checkout@v7
- name: Setup PHP ${{ matrix.php }} for dependencies
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install Dependencies
run: composer update --ignore-platform-reqs
- name: Restore PHPStan cache
id: cache-phpstan
uses: actions/cache/restore@v6
with:
path: phpstan.phar
key: phpstan-1
- name: Run PHPStan
run: vendor/bin/phpstan analyse --configuration phpstan.neon
update-baseline:
needs: phpstan
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Delete existing branch if exists
run: |
if git ls-remote --heads origin update-phpstan-baseline | grep -q update-phpstan-baseline; then
git push origin --delete update-phpstan-baseline
fi
- name: Setup PHP 7.4 for dependencies
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Install Dependencies
run: composer update --ignore-platform-reqs
- name: Generate new baseline
id: generate-baseline
run: |
cp phpstan-baseline.neon phpstan-baseline.neon.old
vendor/bin/phpstan analyse --configuration phpstan.neon --generate-baseline
if ! diff -q phpstan-baseline.neon phpstan-baseline.neon.old > /dev/null; then
echo "baseline_changed=true" >> $GITHUB_OUTPUT
fi
- name: Create Pull Request
if: steps.generate-baseline.outputs.baseline_changed == 'true'
uses: peter-evans/create-pull-request@v8
with:
commit-message: '[skip ci] Update PHPStan baseline'
title: '[CI] Update PHPStan baseline'
body: |
Automatic update of the PHPStan baseline following error fixes.
This PR was automatically generated by the CI/CD workflow.
branch: update-phpstan-baseline
base: develop
delete-branch: true
add-paths: |
phpstan-baseline.neon
reviewers: |
zoic21
Hotfirenet
Salvialf
Sekiro-kost
reineabs
Mips2648