From 084fe34b561b3f44b49dbdbc16a331fa28e71bf4 Mon Sep 17 00:00:00 2001 From: Refringe Date: Tue, 18 Jun 2024 17:36:41 -0400 Subject: [PATCH] Fixes Workflow Warning & Writes Log on Fail --- .github/workflows/tests.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 185114a..7ac872b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -44,11 +44,11 @@ jobs: run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Get NPM Cache Directory id: npm-cache - run: echo "::set-output name=dir::$(npm config get cache)" + run: echo "NPM_CACHE_DIR=$(npm config get cache)" >> $GITHUB_ENV - name: Cache NPM Dependencies uses: actions/cache@v4 with: - path: ${{ steps.npm-cache.outputs.dir }} + path: ${{ env.NPM_CACHE_DIR }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node- - name: Install npm dependencies @@ -65,3 +65,6 @@ jobs: run: php artisan storage:link - name: Run Tests run: php artisan test + - name: Display Laravel Log + if: failure() + run: cat storage/logs/laravel.log