From 33829927e13dc32848fc3cb5ad7217079921f6db Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Feb 2026 01:17:22 +0000 Subject: [PATCH] ci: add Forgejo Actions workflow for PHP tests 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 --- .forgejo/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .forgejo/workflows/ci.yml diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..a6eaa2b --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -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