ci: add Forgejo Actions workflow for PHP tests
Some checks failed
CI / PHP 8.4 (push) Failing after 1m6s
CI / PHP 8.3 (push) Failing after 1m8s

The .github/workflows/ci.yml has a visibility guard that evaluates
to false on Forgejo, causing all jobs to fail in 1 second.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-02-23 01:17:22 +00:00
parent 10b6260c4c
commit 33829927e1
No known key found for this signature in database
GPG key ID: AF404715446AEB41

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

@ -0,0 +1,38 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.3, 8.4]
name: PHP ${{ matrix.php }}
steps:
- name: Checkout
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: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Run Pint
run: vendor/bin/pint --test
- name: Run tests
run: vendor/bin/pest --ci --coverage