File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 sed -i "s/<version>0.0.0<\/version>/<version>$RELEASE_VERSION<\/version>/g" ./appinfo/info.xml
6161
6262 - name : unittests
63- env :
64- CLIENT_ID : ${{ secrets.VAAS_CLIENT_ID }}
65- CLIENT_SECRET : ${{ secrets.VAAS_CLIENT_SECRET }}
6663 run : |
6764 composer install
6865 ./vendor/bin/phpunit --bootstrap tests/unittests/bootstrap.php tests/unittests/ --testdox
@@ -88,10 +85,13 @@ jobs:
8885 CLIENT_SECRET : ${{ secrets.VAAS_CLIENT_SECRET }}
8986 NEXTCLOUD_HOSTNAME : nextcloud-container
9087 run : |
88+ # Need to dump env into .env because phpunit does not pass them on to tests
89+ printenv | sed "s/'/'\"'\"'/g; s/=/='/; s/$/'/" > .env
9190 curl --fail --show-error --silent --connect-timeout 5 --max-time 10 "http://${NEXTCLOUD_HOSTNAME}/status.php" > /dev/null
9291 curl --fail --show-error --silent --connect-timeout 5 --max-time 10 "http://nextcloud-container/status.php" > /dev/null
9392 bats --verbose-run --timing --trace ./tests/bats
9493 ./vendor/bin/phpunit --bootstrap tests/integration/bootstrap.php tests/integration/
94+ rm -f .env
9595
9696 - uses : actions/upload-artifact@master
9797 with :
Original file line number Diff line number Diff line change @@ -33,6 +33,6 @@ function findEnvDirectory(string $startDir): ?string {
3333$ envDir = findEnvDirectory (__DIR__ );
3434
3535if ($ envDir !== null ) {
36- $ dotenv = Dotenv::createImmutable ($ envDir );
36+ $ dotenv = Dotenv::createMutable ($ envDir );
3737 $ dotenv ->safeLoad ();
3838}
You can’t perform that action at this time.
0 commit comments