diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f39410a950d3c8d8ceaff8074969f50b21dcdc72..64376a155c0dfad49e43ea547885919adc13efe0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,6 @@ variables: default: before_script: - cd alfa-client - - ls -a - npm install -g pnpm@9.15.4 - pnpm config set store-dir .pnpm-store - pnpm install --frozen-lockfile @@ -45,6 +44,11 @@ alfa test: - pnpx nx run-many --target=test --parallel -- --runInBand rules: - if: '$CI_COMMIT_BRANCH != "main"' + artifacts: + when: always + reports: + junit: + - reports/unit-tests.xml .admin: stage: lint diff --git a/alfa-client/jest.preset.js b/alfa-client/jest.preset.js index 39ba69ad33722a9a690e86213080cc42acf9b1fa..3e0b4a8bd638cd8c2f1ce189c5c258d4b3c0682d 100644 --- a/alfa-client/jest.preset.js +++ b/alfa-client/jest.preset.js @@ -29,4 +29,5 @@ module.exports = { 'lodash-es': 'lodash', }, workerIdleMemoryLimit: '1024MB', + reporters: ['default', ['jest-junit', { outputDirectory: 'reports', outputName: 'unit-tests.xml' }]], };