diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e9ed849e712e8fcf9c93bf55ee49d8f91706094..a57d1ded43ecc4ba9605f1a43a74765822e2a800 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,6 @@ stages: - - test - build + - test - deploy image: node:20-alpine @@ -21,22 +21,12 @@ cache: # We do not cache node_modules for Angular projects until they are used between several jobs # - angular/.npm -test-e2e-playwright: - tags: - - sncf-runner - stage: test - image: mcr.microsoft.com/playwright:v1.57.0-noble - script: - - npm ci --cache .npm --prefer-offline - - npm run generate-design-tokens - - npm run test:playwright - build: tags: - sncf-runner stage: build artifacts: - expire_in: 4 days + expire_in: 2 days paths: - storybook-static/ - loader/ @@ -45,6 +35,7 @@ build: - angular/dist/wcs-angular/ - angular/dist/wcs-formly/ - react/dist/ + - node_modules/ script: # Build wcs core - npm ci --cache .npm --prefer-offline --ignore-scripts puppeteer @@ -61,6 +52,15 @@ build: - npm run build - cd .. +test-e2e-playwright: + tags: + - sncf-runner + stage: test + image: mcr.microsoft.com/playwright:v1.57.0-noble + script: + - npm run generate-design-tokens + - npm run test:playwright + # Old deploy job for Gitlab Pages, now replaced by deploy-azure (we deploy a redirect page to Gitlab Pages) pages: tags: