From de2a382cbf833f59f84daf30f577a107081f8859 Mon Sep 17 00:00:00 2001 From: Lyra Bot Date: Fri, 7 Aug 2026 09:06:32 -0400 Subject: [PATCH] Add Gitea workflow to run test suite on push and PR --- .gitea/workflows/tests.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/tests.yaml diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml new file mode 100644 index 0000000..80992d3 --- /dev/null +++ b/.gitea/workflows/tests.yaml @@ -0,0 +1,33 @@ +name: Tests + +on: + push: + branches: + - 'main' + - 'develop' + pull_request: + branches: + - 'main' + - 'develop' + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.5' + extensions: apcu, mbstring + coverage: xdebug + ini-values: apc.enable_cli=1 + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + - name: Run tests + run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text