Skip to content

Commit 8821dad

Browse files
authored
Update GH Actions (#2)
1 parent 22af9f2 commit 8821dad

File tree

5 files changed

+39
-6
lines changed

5 files changed

+39
-6
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/.* export-ignore
2+
/*.md export-ignore
3+

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: mlocati
2+
custom: https://paypal.me/mlocati

.github/workflows/create-release-attachment.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ jobs:
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
@@ -28,4 +30,3 @@ jobs:
2830
with:
2931
remove-files: |
3032
composer.json
31-
composer.lock
Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Checks
1+
name: Tests
22

33
on:
44
push:
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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)

0 commit comments

Comments
 (0)