Skip to content

Commit

Permalink
fixed run migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
vicmagpac authored and lpirola committed Jul 2, 2024
1 parent a2f974d commit bde736f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:

- name: Run migrations
run: |
pwd
ls -la
mkdir var/private-files/dbupdate_documento
php src/tools/apply-updates.php
env:
APP_MODE: development
Expand All @@ -46,7 +45,7 @@ jobs:
XDEBUG_MODE: coverage
with:
configuration: phpunit.xml
php_extensions: xdebug mbstring curl xml
php_extensions: pdo_pgsql xdebug mbstring curl xml
args: tests --coverage-clover ./coverage.xml

- name: Upload to Codecov
Expand Down
17 changes: 17 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/|version|/phpunit.xsd"
bootstrap="tests/bootstrap.php">
<testsuites>
<testsuite name="unit">
<directory>tests/unit</directory>
</testsuite>

<testsuite name="integration">
<directory>tests/integration</directory>
</testsuite>
</testsuites>
<php>
<env name="APP_MODE" value="development" force="true" />
</php>
</phpunit>

0 comments on commit bde736f

Please sign in to comment.