Skip to content

Commit

Permalink
Atualiza ambiente de testes unitários
Browse files Browse the repository at this point in the history
  • Loading branch information
lpirola committed May 23, 2024
1 parent 0fead8d commit 59a13e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:

- name: Run migrations
run: |
php src/tools/apply-updates.php
php src/tools/apply-updates.php
env:
APP_MODE: development

- name: PHPUnit Tests
uses: php-actions/phpunit@v3
Expand Down
Binary file added composer.phar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/conf/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$folders = glob(CONFIG_PATH . '*.d/');
$folders_dev = glob(PROTECTED_PATH . 'containers/config.d/');

if ($_ENV['APP_MODE'] === APPMODE_DEVELOPMENT) {
if (!$_ENV['APP_MODE']) && ($_ENV['APP_MODE'] === APPMODE_DEVELOPMENT) {
$folders = array_merge($folders, $folders_dev);
}
sort($folders);
Expand Down

0 comments on commit 59a13e0

Please sign in to comment.