Skip to content

Commit 69fb935

Browse files
committed
added libre office path to laravel env environment
1 parent 9b33dfc commit 69fb935

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
echo "APP_KEY=$(php artisan key:generate --show)" > .env
4747
echo "APP_ENV=testing" >> .env
4848
echo "DB_CONNECTION=sqlite" >> .env
49+
echo "LIBREOFFICE_PATH=/usr/bin/soffice" >> .env
4950
5051
# Step 8: Run Unit tests
5152
- name: Run Unit tests

tests/TestCase.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ protected function getEnvironmentSetUp($app): void
3333
$app['config']->set('doxswap.input_disk', 'local');
3434
$app['config']->set('doxswap.output_disk', 'local');
3535
$app['config']->set('doxswap.cleanup_strategy', 'none');
36-
$app['config']->set('doxswap.drivers.libreoffice_path', '/Applications/LibreOffice.app/Contents/MacOS/soffice');
37-
//$app['config']->set('doxswap.drivers.libreoffice_path', '/usr/bin/soffice');
38-
$app['config']->set('doxswap.drivers.pandoc_path', '/usr/bin/pandoc');
36+
$app['config']->set('doxswap.drivers.libreoffice_path', env('LIBREOFFICE_PATH', '/Applications/LibreOffice.app/Contents/MacOS/soffice'));
37+
$app['config']->set('doxswap.drivers.pandoc_path', env('PANDOC_PATH', '/usr/bin/pandoc'));
3938
}
4039
}

0 commit comments

Comments
 (0)