From 6faf4a72df6e373d96bedb72d8d2df0d31a27114 Mon Sep 17 00:00:00 2001 From: Aneurin Barker Snook Date: Sat, 5 Sep 2026 09:23:55 +0100 Subject: [PATCH] Add Gitea Actions workflow to run PHPUnit on pull requests Runs the backend test suite against PHP 8.3 for every PR targeting main, so branch protection can require it to pass before merging. Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..cfec672 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: + pull_request: + branches: [main] + +jobs: + php-tests: + runs-on: ubuntu-latest + container: php:8.3-cli-alpine + steps: + - uses: actions/checkout@v4 + + - name: Install Composer + run: curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + + - name: Install dependencies + run: composer install --no-progress --prefer-dist + + - name: Run tests + run: vendor/bin/phpunit