From d8f9fdfc0dbd86fb4db28524266cd345c61d45b5 Mon Sep 17 00:00:00 2001 From: Claudio Varandas Date: Sun, 3 Mar 2024 19:20:56 +0000 Subject: [PATCH] fix workflow , set working dir --- .github/workflows/lws-poc.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lws-poc.yml b/.github/workflows/lws-poc.yml index 698e385..ad17262 100644 --- a/.github/workflows/lws-poc.yml +++ b/.github/workflows/lws-poc.yml @@ -17,12 +17,17 @@ jobs: php-version: '8.2' - uses: actions/checkout@v3 - name: Copy .env - run: php -r "file_exists('./servers-api/.env') || copy('./servers-api/.env.example', './servers-api/.env');" + working-directory: ./servers-api + run: php -r "file_exists('.env') || copy('.env.example', '.env');" - name: Install Dependencies + working-directory: ./servers-api run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - name: Generate key + working-directory: ./servers-api run: php artisan key:generate - name: Directory Permissions + working-directory: ./servers-api run: chmod -R 777 storage bootstrap/cache - name: Execute tests (Unit and Feature tests) via PHPUnit + working-directory: ./servers-api run: vendor/bin/phpunit