Skip to content

Commit 3d1f592

Browse files
committed
Fix junit output overwriting itself
1 parent 3f95408 commit 3d1f592

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/integration-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ jobs:
8989
9090
- name: Run LDAP integration tests
9191
if: steps.changed-files.outputs.common == 'true' || steps.changed-files.outputs.ldap == 'true'
92+
env:
93+
JEST_JUNIT_UNIQUE_OUTPUT_NAME: "true" # avoids junit outputs from clashing
9294
run: npx jest ldap-directory.service.integration.spec.ts --coverage --coverageDirectory=coverage-ldap
9395

9496
# Google Workspace
@@ -99,6 +101,7 @@ jobs:
99101
GOOGLE_ADMIN_USER: ${{ vars.GOOGLE_ADMIN_USER }}
100102
GOOGLE_CLIENT_EMAIL: ${{ vars.GOOGLE_CLIENT_EMAIL }}
101103
GOOGLE_PRIVATE_KEY: ${{ secrets.GOOGLE_PRIVATE_KEY }}
104+
JEST_JUNIT_UNIQUE_OUTPUT_NAME: "true" # avoids junit outputs from clashing
102105
run: |
103106
npx jest gsuite-directory.service.integration.spec.ts --coverage --coverageDirectory=coverage-google
104107
@@ -108,7 +111,7 @@ jobs:
108111
if: github.event.pull_request.head.repo.full_name == github.repository && !cancelled() && steps.changed-files.outputs.changes != '[]'
109112
with:
110113
name: Test Results
111-
path: "junit.xml"
114+
path: "junit.xml*"
112115
reporter: jest-junit
113116
fail-on-error: true
114117

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ build-cli
3333
.angular/cache
3434

3535
# Testing
36-
coverage
37-
junit.xml
36+
coverage*
37+
junit.xml*
3838

3939
# Misc
4040
*.crx

0 commit comments

Comments
 (0)