Try a different method for enabling GHA annotations in vitest.

This commit is contained in:
Sam Rose 2024-11-20 16:03:45 +00:00
parent edee1c2a74
commit 900dfc1652
No known key found for this signature in database
1 changed files with 2 additions and 4 deletions

View File

@ -113,15 +113,13 @@ jobs:
- run: yarn --frozen-lockfile - run: yarn --frozen-lockfile
- name: Test - name: Test
env: env:
# This enables github annotations for vitest
GITHUB_ACTIONS: true
run: | run: |
if ${{ env.ONLY_AFFECTED_TASKS }}; then if ${{ env.ONLY_AFFECTED_TASKS }}; then
yarn test -- --ignore=@budibase/worker --ignore=@budibase/server --ignore=@budibase/builder --no-prefix --since=${{ env.NX_BASE_BRANCH }} -- --verbose --reporters=default --reporters=github-actions yarn test -- --ignore=@budibase/worker --ignore=@budibase/server --ignore=@budibase/builder --no-prefix --since=${{ env.NX_BASE_BRANCH }} -- --verbose --reporters=default --reporters=github-actions
yarn test -- --scope=@budibase/builder --since=${{ env.NX_BASE_BRANCH }} --no-prefix yarn test -- --scope=@budibase/builder --since=${{ env.NX_BASE_BRANCH }} --no-prefix -- --reporter=default --reporter=github-actions
else else
yarn test -- --ignore=@budibase/worker --ignore=@budibase/server --ignore=@budibase/builder --no-prefix -- --verbose --reporters=default --reporters=github-actions yarn test -- --ignore=@budibase/worker --ignore=@budibase/server --ignore=@budibase/builder --no-prefix -- --verbose --reporters=default --reporters=github-actions
yarn test -- --scope=@budibase/builder --no-prefix yarn test -- --scope=@budibase/builder --no-prefix -- --reporter=default --reporter=github-actions
fi fi
test-worker: test-worker: