ci: add Gitea Actions workflow (.gitea/workflows)

- Primary workflow under .gitea/workflows (Gitea scans this before .github)
- Explicit https://github.com/... action refs for predictable resolution on Gitea
- Mirror under .github/workflows for GitHub Actions (short uses: names)

Made-with: Cursor
This commit is contained in:
2026-03-21 03:00:31 -05:00
parent e121a394b9
commit 43f29e5128
2 changed files with 72 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
# Gitea Actions — requires Gitea 1.19+ with Actions enabled and at least one act_runner
# whose labels include the job's runs-on value (commonly ubuntu-latest). See:
# https://docs.gitea.com/usage/actions/quickstart
#
# Explicit https://github.com/... action URLs work on all instances; short names also work
# when the server fetches actions from GitHub (default) or from self with [actions].DEFAULT_ACTIONS_URL.
name: CI
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master, develop]
jobs:
php:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- name: Setup PHP
uses: https://github.com/shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- name: Composer install (dev tools)
run: composer install --no-interaction --prefer-dist
- name: PHPUnit
run: ./vendor/bin/phpunit -c phpunit.xml.dist
- name: PHPStan (tests only; full module needs Magento stubs)
run: ./vendor/bin/phpstan analyse --no-progress --memory-limit=512M
- name: PHPCS
run: ./vendor/bin/phpcs --standard=phpcs.xml
+34
View File
@@ -0,0 +1,34 @@
# GitHub Actions / editor compatibility — Gitea runs workflows from `.gitea/workflows` first when
# that directory exists; keep this file in sync with `.gitea/workflows/ci.yml`.
name: CI
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master, develop]
jobs:
php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- name: Composer install (dev tools)
run: composer install --no-interaction --prefer-dist
- name: PHPUnit
run: ./vendor/bin/phpunit -c phpunit.xml.dist
- name: PHPStan (tests only; full module needs Magento stubs)
run: ./vendor/bin/phpstan analyse --no-progress --memory-limit=512M
- name: PHPCS
run: ./vendor/bin/phpcs --standard=phpcs.xml