setup forgejo ci

This commit is contained in:
Robin Appelman 2026-07-15 14:27:48 +02:00
commit 07b1776db6
3 changed files with 19 additions and 19 deletions

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

@ -0,0 +1,21 @@
name: CI
on: [push]
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.4']
steps:
- uses: actions/checkout@v4
- name: Set up php${{ matrix.php-versions }}
uses: https://github.com/shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install dependencies
run: composer i
- name: PHPUnit
run: ./vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml