Skip to content

Commit

Permalink
ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanGaignault committed Feb 6, 2025
1 parent 0365297 commit ff68815
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ cache:
- .yarn/cache

stages:
- build
- task
- ci-image
- test
Expand Down Expand Up @@ -125,6 +126,26 @@ ci-image:
# Tests
########################################################################################################################

build-artifacts:
stage: build
extends:
- .base-configuration
script:
- yarn
- yarn build
artifacts:
paths:
- packages/core/esm
- packages/core/cjs
- packages/rum/esm
- packages/rum/cjs
- packages/rum-core/esm
- packages/rum-core/cjs
- packages/logs/esm
- packages/logs/cjs
- developer-extension/**/dist
expire_in: 1 day

format:
extends:
- .base-configuration
Expand Down Expand Up @@ -216,15 +237,17 @@ e2e:
extends:
- .base-configuration
- .test-allowed-branches
stage: test
needs:
- build-artifacts
interruptible: true
artifacts:
when: always
paths: ['test-report/e2e/specs.log']
reports:
junit: test-report/e2e/*.xml
script:
- yarn
- FORCE_COLOR=1 yarn test:e2e
- FORCE_COLOR=1 yarn test:e2e:only
after_script:
- node ./scripts/test/export-test-result.js e2e

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"test:unit:watch": "yarn test:unit --no-single-run",
"test:unit:bs": "node ./scripts/test/bs-wrapper.js karma start test/unit/karma.bs.conf.js",
"test:e2e": "yarn build && (cd test/app && rm -rf node_modules && yarn && yarn build) && wdio test/e2e/wdio.local.conf.ts",
"test:e2e:only": "(cd test/app && rm -rf node_modules && yarn && yarn build) && wdio test/e2e/wdio.local.conf.ts",
"test:e2e:bs": "yarn build && (cd test/app && rm -rf node_modules && yarn && yarn build) && node ./scripts/test/bs-wrapper.js wdio test/e2e/wdio.bs.conf.ts",
"test:e2e:developer-extension": "yarn build && wdio test/e2e/wdio.developer-extension.conf.ts",
"test:compat:tsc": "scripts/cli check_typescript_compatibility",
Expand Down

0 comments on commit ff68815

Please sign in to comment.