From 3ec51647ddadeb8fc24b95bc346c2ed65c599e4c Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Wed, 29 May 2024 14:38:36 -0700 Subject: [PATCH] Update testing_dev_with_live_services.yml --- .../testing_dev_with_live_services.yml | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testing_dev_with_live_services.yml b/.github/workflows/testing_dev_with_live_services.yml index 5ca35b9d2e..b5b171d190 100644 --- a/.github/workflows/testing_dev_with_live_services.yml +++ b/.github/workflows/testing_dev_with_live_services.yml @@ -70,17 +70,33 @@ jobs: - name: Install GUIDE run: npm ci --verbose - - name: Create env file - run: | - touch .env - echo DANDI_STAGING_API_KEY=${{ secrets.DANDI_STAGING_API_KEY }} >> .env + - name: Create environment file + run: echo DANDI_STAGING_API_KEY=${{ secrets.DANDI_STAGING_API_KEY }} >> .env + if: runner.os != 'Windows' + + - name: Create environment file (Windows) + run: echo DANDI_STAGING_API_KEY=${{ secrets.DANDI_STAGING_API_KEY }} >> .env + shell: bash + if: runner.os == 'Windows' + + # Display environment file for debugging + - name: Print environment file + run: cat .env + if: runner.os != 'Windows' + + - name: Print environment file + run: type .env + shell: bash + if: runner.os == 'Windows' - if: matrix.os != 'ubuntu-latest' name: Run tests + shell: bash run: npm run coverage:app - if: matrix.os == 'ubuntu-latest' name: Run tests with xvfb + shell: bash run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run coverage:app - name: Upload coverage reports to Codecov