Compare commits

..

10 commits

Author SHA1 Message Date
Claude
739e84d84b ci: clean up workflow comment
All checks were successful
CI / PHP 8.3 (push) Successful in 1m11s
CI / PHP 8.4 (push) Successful in 54s
2026-02-23 05:56:02 +00:00
Claude
69897aedab ci: trigger v5 run
Some checks are pending
CI / PHP 8.3 (push) Waiting to run
CI / PHP 8.4 (push) Waiting to run
2026-02-23 05:53:59 +00:00
Claude
702717394a ci: retrigger workflow
Some checks are pending
CI / PHP 8.3 (push) Waiting to run
CI / PHP 8.4 (push) Waiting to run
2026-02-23 05:48:37 +00:00
Claude
a4626e8f41 ci: add composer config for path repositories (v5)
Some checks are pending
CI / PHP 8.3 (push) Waiting to run
CI / PHP 8.4 (push) Waiting to run
2026-02-23 05:45:47 +00:00
Claude
f57a3b21ba
fix(ci): hard-code sister package clone instead of PHP parsing
Some checks failed
CI / PHP 8.3 (push) Failing after 51s
CI / PHP 8.4 (push) Failing after 45s
Direct git clone of ../php-framework avoids shell escaping
issues with dynamic PHP-based path extraction.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 05:31:39 +00:00
Claude
8f66284a52
fix(ci): use single-quoted PHP to avoid shell escaping issues
Some checks failed
CI / PHP 8.3 (push) Failing after 57s
CI / PHP 8.4 (push) Failing after 46s
Switch php -r argument to single quotes so PHP dollar signs
are not interpreted by bash. Pipe output to while-read loop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 05:24:20 +00:00
Claude
a74e74c81b
fix(ci): correct bash escaping in dependency checkout step
Some checks failed
CI / PHP 8.3 (push) Failing after 58s
CI / PHP 8.4 (push) Failing after 45s
The PHP variables inside php -r need \$ escaping, but shell
variables outside need bare $ for command substitution and
variable expansion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 05:19:11 +00:00
Claude
812886dc33
ci: inline workflow to bypass reusable workflow cache
Some checks failed
CI / PHP 8.3 (push) Failing after 46s
CI / PHP 8.4 (push) Failing after 47s
The Forgejo act runner caches reusable workflow definitions,
preventing updates from being picked up. Inline the workflow
with dependency checkout step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 05:11:43 +00:00
Claude
912927fdd0
ci: use reusable PHP test workflow from core/php
Some checks failed
CI / tests (push) Failing after 1m16s
Co-Authored-By: Charon <charon@lethean.io>
2026-02-23 01:22:03 +00:00
63abc5f99a Merge pull request 'security: validate JSON metadata fields to prevent mass assignment' (#22) from security/validate-json-metadata into main
Some checks failed
CI / PHP 8.3 (push) Failing after 1s
CI / Assets (push) Failing after 1s
CI / PHP 8.2 (push) Failing after 1s
CI / PHP 8.4 (push) Failing after 1s
2026-02-21 01:26:03 +00:00

62
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,62 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ["8.3", "8.4"]
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: https://github.com/shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: pcov
- name: Clone sister packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Cloning php-framework into ../php-framework"
git clone --depth 1 \
"https://x-access-token:${GITHUB_TOKEN}@forge.lthn.ai/core/php-framework.git" \
../php-framework
ls -la ../php-framework/composer.json
- name: Configure path repositories
run: |
composer config repositories.core path ../php-framework --no-interaction
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Run Pint
run: |
if [ -f vendor/bin/pint ]; then
vendor/bin/pint --test
else
echo "Pint not installed, skipping"
fi
- name: Run tests
run: |
if [ -f vendor/bin/pest ]; then
vendor/bin/pest --ci --coverage
elif [ -f vendor/bin/phpunit ]; then
vendor/bin/phpunit --coverage-text
else
echo "No test runner found, skipping"
fi