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 b98f3f8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 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 dev/config.d/0.main.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
return [
/* MAIN */
'themes.active' => 'MapasCulturais\Themes\BaseV2',
'app.mode' => $_ENV['APP_MODE'],
'app.mode' => env('APP_MODE'),
'doctrine.isDev' => false, // deixe true somente se estiver trabalhando nos mapeamentos das entidades

/* SELOS */
Expand Down
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 (getenv('APP_MODE') === APPMODE_DEVELOPMENT) {
$folders = array_merge($folders, $folders_dev);
}
sort($folders);
Expand Down

0 comments on commit b98f3f8

Please sign in to comment.