Skip to content

Commit

Permalink
PR check workflows: fix variable expansion wonky-ness
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed Apr 9, 2024
1 parent b1398cf commit 7ae2559
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/node-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nuxt-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/web-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ae2559

Please sign in to comment.