From 7ae25598557be6e09e9e1e83f38475e2ef7a0b54 Mon Sep 17 00:00:00 2001 From: David Jennes Date: Tue, 9 Apr 2024 14:26:52 +0200 Subject: [PATCH] PR check workflows: fix variable expansion wonky-ness --- .github/workflows/node-build-and-test.yml | 5 +++-- .github/workflows/nuxt-build-and-test.yml | 5 +++-- .github/workflows/web-build-and-test.yml | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node-build-and-test.yml b/.github/workflows/node-build-and-test.yml index eb62bc2..b5b9ac0 100644 --- a/.github/workflows/node-build-and-test.yml +++ b/.github/workflows/node-build-and-test.yml @@ -173,9 +173,10 @@ jobs: cp -f '.env.test' '.env' fi if [ "$RUNNER_DEBUG" != '1' ]; then - TEST_REPORTER='--test-reporter=junit --test-reporter-destination="test-report-junit.xml"' + TEST_REPORTER='--test-reporter=junit' + TEST_REPORTER_DESTINATION='--test-reporter-destination="test-report-junit.xml"' fi - node --test -r dotenv/config $TEST_REPORTER + node --test -r dotenv/config $TEST_REPORTER $TEST_REPORTER_DESTINATION - name: Publish test report uses: mikepenz/action-junit-report@v4 if: always() # always run even if the previous step fails diff --git a/.github/workflows/nuxt-build-and-test.yml b/.github/workflows/nuxt-build-and-test.yml index 048e9df..3fd7a47 100644 --- a/.github/workflows/nuxt-build-and-test.yml +++ b/.github/workflows/nuxt-build-and-test.yml @@ -96,9 +96,10 @@ jobs: cp -f '.env.test' '.env' fi if [ "$RUNNER_DEBUG" != '1' ]; then - TEST_REPORTER='--reporter=junit --outputFile="test-report-junit.xml"' + TEST_REPORTER='--reporter=junit' + TEST_REPORTER_DESTINATION='--outputFile="test-report-junit.xml"' fi - pnpm vitest --run $TEST_REPORTER + pnpm vitest --run $TEST_REPORTER $TEST_REPORTER_DESTINATION - name: Publish test report uses: mikepenz/action-junit-report@v4 if: always() # always run even if the previous step fails diff --git a/.github/workflows/web-build-and-test.yml b/.github/workflows/web-build-and-test.yml index 2a1348c..d57cb17 100644 --- a/.github/workflows/web-build-and-test.yml +++ b/.github/workflows/web-build-and-test.yml @@ -111,9 +111,10 @@ jobs: cp -f '.env.test' '.env' fi if [ "$RUNNER_DEBUG" != '1' ]; then - TEST_REPORTER='--reporter=junit --outputFile="test-report-junit.xml"' + TEST_REPORTER='--reporter=junit' + TEST_REPORTER_DESTINATION='--outputFile="test-report-junit.xml"' fi - pnpm vitest --run $TEST_REPORTER + pnpm vitest --run $TEST_REPORTER $TEST_REPORTER_DESTINATION - name: Publish test report uses: mikepenz/action-junit-report@v4 if: always() # always run even if the previous step fails