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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/.* export-ignore
/*.md export-ignore

2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: mlocati
custom: https://paypal.me/mlocati
7 changes: 4 additions & 3 deletions .github/workflows/create-release-attachment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ jobs:
attach-zip:
name: Attach ZIP to release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer:v2
php-version: '8.4'
tools: composer:v2.2
coverage: none
-
name: Checkout
Expand All @@ -28,4 +30,3 @@ jobs:
with:
remove-files: |
composer.json
composer.lock
33 changes: 30 additions & 3 deletions .github/workflows/checks.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Checks
name: Tests

on:
push:
Expand All @@ -12,7 +12,7 @@ on:

jobs:

check-syntax:
check-php-syntax:
name: PHP ${{ matrix.php-version }} Syntax
runs-on: ubuntu-latest
strategy:
Expand All @@ -38,25 +38,52 @@ jobs:
with:
fail-on-warnings: true

check-development-leftovers:
name: Check Development Leftovers
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Search for debugger or xdebug_break
run: |
echo "Scanning for 'debugger' or 'xdebug_break'..."
matches=$(grep -Enr --include=\*.{js,php} '(^|[^a-zA-Z0-9_])(debugger|xdebug_break)\b' . || true)
if [[ -n "$matches" ]]; then
echo "Found the following matches:"
echo "$matches"
echo "::error::Development leftovers found in the codebase."
exit 1
else
echo "No development leftovers found."
fi

check-install:
name: Install on Concrete ${{ matrix.ccm-version }}
runs-on: ubuntu-latest
container: ghcr.io/concrete5-community/docker5:${{ matrix.ccm-version }}
needs:
- check-php-syntax
- check-development-leftovers
strategy:
matrix:
ccm-version:
- 8.5.2
- "8.5"
- "9.0"
- "9.1"
- "9.2"
- "9.3"
- "9.4"
- latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Check composer.json
run: sudo -u www-data composer --ansi --no-interaction validate --strict -- "$GITHUB_WORKSPACE/composer.json"
run: sudo -u www-data composer --ansi --no-interaction validate --strict -- "$GITHUB_WORKSPACE/composer.json"
-
name: Prepare package
run: ln -s "$GITHUB_WORKSPACE" /app/packages/empty_anchor
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +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)