From fba5c8a976d79df6deab5f73a9f9a409185a7b7f Mon Sep 17 00:00:00 2001 From: Vladimir Bryzgalov Date: Sun, 17 May 2026 00:09:59 +0500 Subject: [PATCH] ci(wpmc S6): Gitea Actions workflow for PHPUnit on push/PR Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..e750ca7 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,34 @@ +name: tests + +on: + push: + branches: [main] + pull_request: + +jobs: + phpunit: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup PHP 8.0 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' + coverage: none + tools: composer:v2 + + - name: Cache Composer dependencies + uses: actions/cache@v4 + with: + path: vendor + key: ${{ runner.os }}-php8.0-${{ hashFiles('composer.json') }} + restore-keys: | + ${{ runner.os }}-php8.0- + + - name: Install dependencies + run: composer install --no-progress --prefer-dist --no-interaction + + - name: Run PHPUnit + run: vendor/bin/phpunit