PHPUnit / phpunit (push) Canceled after 0s
* fix: upgrade goteo/benzina to 0.6 * feat: increase Nominatim cache TTL * fix: allow long addresses for territory data * fix: build project addresses from goteo 3 territory fields * fix: handle empty strings for video sources * fix: update project drafts deadline to 2026 * feat: split project description into 4 fields * feat: bump doctrine related dependencies * feat: bump symfony related dependencies * feat: make categories work on idOrSlug * fix: allow filtering on project descBrief property * fix: update constraints on project update to allow optional updates of properties * fix: update Projects test suite to new project shape * fix: order of DROP operations in migration Version20260813171902 * fix: move accounting balance and checkout to supports listeners to onFlush events * fix: bad order of filter safeguards * chore: code style by php-cs-fixer * fix: prevent uninitialized fields on api resource from breaking AccountingVoter * fix: small bug preventing code improvements on Accounting api resource * feat: add cover property on ProjectReward resource * feat: add cover property to Project resources * feat: use video cover for project cover * feat: add migration for property cover on project and rewards * fix: small improvements on UserOwned helpers * feat: add territory to project creation * feat: mark creation fields as required * feat: add CollaborationCandidacy resource * fix: update old validations access of new types * feat: add validation for charges targetting projects not in campaign * feat: validate new collaboration candicacies are to open collaborations * feat: prevent future object access issues in SameProjectRewardChargeValidator * fix: return void on succesfull delete operations * fix: force set of isFinite property * feat: allow to filter ProjectBudgetItem by type and deadline * feat: remove example values from .env * feat: add testing encryption keys * feat: make project in BudgetItem body required * feat: add testing encryption keys to actions * feat: add collaborations property to ProjectApiResource
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: PHPUnit
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
PHP_VERSION: '8.3'
|
|
PHP_EXTENSIONS: pdo_mysql intl
|
|
|
|
jobs:
|
|
phpunit:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }}
|
|
DOCTRINE_ENCRYPTION_ENCRYPT_KEY: "0Y3McEg51558fcreunKodhuP+Ua/Yf+tp43GxmBVY4Q="
|
|
DOCTRINE_ENCRYPTION_BLIND_INDEX_KEY: "cRt6Hf/3nEVG8XTBnZrOFCnOHJQ7PIE910EYIT+79EQ="
|
|
|
|
services:
|
|
mariadb:
|
|
image: mariadb:10.11.2
|
|
env:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: false
|
|
MYSQL_ROOT_PASSWORD: goteo
|
|
MYSQL_DATABASE: goteo
|
|
ports:
|
|
- 3306/tcp
|
|
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: php-actions/composer@v6
|
|
with:
|
|
php_version: ${{ env.PHP_VERSION }}
|
|
php_extensions: ${{ env.PHP_EXTENSIONS }}
|
|
|
|
- name: PHPUnit
|
|
uses: php-actions/phpunit@v4
|
|
env:
|
|
DATABASE_URL: mysql://root:goteo@127.0.0.1:${{ job.services.mariadb.ports['3306'] }}/goteo
|
|
with:
|
|
php_version: ${{ env.PHP_VERSION }}
|
|
php_extensions: ${{ env.PHP_EXTENSIONS }}
|
|
configuration: phpunit.xml.dist
|