File tree Expand file tree Collapse file tree 5 files changed +39
-6
lines changed
Expand file tree Collapse file tree 5 files changed +39
-6
lines changed Original file line number Diff line number Diff line change 11/. * export-ignore
2+ /* .md export-ignore
3+
Original file line number Diff line number Diff line change 1+ github : mlocati
2+ custom : https://paypal.me/mlocati
Original file line number Diff line number Diff line change 99 attach-zip :
1010 name : Attach ZIP to release
1111 runs-on : ubuntu-latest
12+ permissions :
13+ contents : write
1214 steps :
1315 -
1416 name : Setup PHP
1517 uses : shivammathur/setup-php@v2
1618 with :
17- php-version : ' 7 .4'
18- tools : composer:v2
19+ php-version : ' 8 .4'
20+ tools : composer:v2.2
1921 coverage : none
2022 -
2123 name : Checkout
2830 with :
2931 remove-files : |
3032 composer.json
31- composer.lock
Original file line number Diff line number Diff line change 1- name : Checks
1+ name : Tests
22
33on :
44 push :
1212
1313jobs :
1414
15- check-syntax :
15+ check-php- syntax :
1616 name : PHP ${{ matrix.php-version }} Syntax
1717 runs-on : ubuntu-latest
1818 strategy :
@@ -38,25 +38,52 @@ jobs:
3838 with :
3939 fail-on-warnings : true
4040
41+ check-development-leftovers :
42+ name : Check Development Leftovers
43+ runs-on : ubuntu-latest
44+ steps :
45+ -
46+ name : Checkout
47+ uses : actions/checkout@v4
48+ -
49+ name : Search for debugger or xdebug_break
50+ run : |
51+ echo "Scanning for 'debugger' or 'xdebug_break'..."
52+ matches=$(grep -Enr --include=\*.{js,php} '(^|[^a-zA-Z0-9_])(debugger|xdebug_break)\b' . || true)
53+ if [[ -n "$matches" ]]; then
54+ echo "Found the following matches:"
55+ echo "$matches"
56+ echo "::error::Development leftovers found in the codebase."
57+ exit 1
58+ else
59+ echo "No development leftovers found."
60+ fi
61+
4162 check-install :
4263 name : Install on Concrete ${{ matrix.ccm-version }}
4364 runs-on : ubuntu-latest
4465 container : ghcr.io/concrete5-community/docker5:${{ matrix.ccm-version }}
66+ needs :
67+ - check-php-syntax
68+ - check-development-leftovers
4569 strategy :
4670 matrix :
4771 ccm-version :
4872 - 8.5.2
73+ - " 8.5"
4974 - " 9.0"
5075 - " 9.1"
5176 - " 9.2"
77+ - " 9.3"
78+ - " 9.4"
5279 - latest
5380 steps :
5481 -
5582 name : Checkout
5683 uses : actions/checkout@v4
5784 -
5885 name : Check composer.json
59- run : sudo -u www-data composer --ansi --no-interaction validate --strict -- "$GITHUB_WORKSPACE/composer.json"
86+ run : sudo -u www-data composer --ansi --no-interaction validate --strict -- "$GITHUB_WORKSPACE/composer.json"
6087 -
6188 name : Prepare package
6289 run : ln -s "$GITHUB_WORKSPACE" /app/packages/empty_anchor
Original file line number Diff line number Diff line change 1+ [ ![ Tests] ( https://github.com/concrete5-community/empty_anchor/actions/workflows/tests.yml/badge.svg )] ( https://github.com/concrete5-community/empty_anchor/actions/workflows/tests.yml )
You can’t perform that action at this time.
0 commit comments