Skip to content
Snippets Groups Projects
Verified Commit a991612f authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

OZG-7856 add unit tests report into pipeline

parent 32f6a9a1
No related branches found
No related tags found
1 merge request!162OZG-7856 Fix file icon issues
Pipeline #2733 canceled
...@@ -12,7 +12,6 @@ variables: ...@@ -12,7 +12,6 @@ variables:
default: default:
before_script: before_script:
- cd alfa-client - cd alfa-client
- ls -a
- npm install -g pnpm@9.15.4 - npm install -g pnpm@9.15.4
- pnpm config set store-dir .pnpm-store - pnpm config set store-dir .pnpm-store
- pnpm install --frozen-lockfile - pnpm install --frozen-lockfile
...@@ -45,6 +44,11 @@ alfa test: ...@@ -45,6 +44,11 @@ alfa test:
- pnpx nx run-many --target=test --parallel -- --runInBand - pnpx nx run-many --target=test --parallel -- --runInBand
rules: rules:
- if: '$CI_COMMIT_BRANCH != "main"' - if: '$CI_COMMIT_BRANCH != "main"'
artifacts:
when: always
reports:
junit:
- reports/unit-tests.xml
.admin: .admin:
stage: lint stage: lint
......
...@@ -29,4 +29,5 @@ module.exports = { ...@@ -29,4 +29,5 @@ module.exports = {
'lodash-es': 'lodash', 'lodash-es': 'lodash',
}, },
workerIdleMemoryLimit: '1024MB', workerIdleMemoryLimit: '1024MB',
reporters: ['default', ['jest-junit', { outputDirectory: 'reports', outputName: 'unit-tests.xml' }]],
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment