Olivier Massot 4 vuotta sitten
vanhempi
commit
94a9a31c43
1 muutettua tiedostoa jossa 32 lisäystä ja 8 poistoa
  1. 32 8
      .gitlab-ci.yml

+ 32 - 8
.gitlab-ci.yml

@@ -27,34 +27,58 @@ install:
     - npx cypress cache path
     - npx cypress cache list
 
-ui-chrome:
+chrome:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   parallel: 5
   script:
     - yarn dev & npx wait-on http://localhost:3004
-    - yarn cypress:silent --record --parallel --browser chrome --group "Chrome" --spec "test/cypress/integration/*"
+    - yarn cypress:silent --parallel --browser chrome --group "Chrome" --spec "test/cypress/integration/*"
+  artifacts:
+    when: always
+    paths:
+      - cypress/videos/**/*.mp4
+      - cypress/screenshots/**/*.png
+    expire_in: 1 day
 
-ui-chrome-mobile:
+chrome-mobile:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   parallel: 5
   script:
     - yarn dev & npx wait-on http://localhost:3004
-    - yarn cypress:silent --record --parallel --browser chrome --group "Chrome - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"
+    - yarn cypress:silent --parallel --browser chrome --group "Chrome - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"
+  artifacts:
+    when: always
+    paths:
+      - cypress/videos/**/*.mp4
+      - cypress/screenshots/**/*.png
+    expire_in: 1 day
 
-ui-firefox:
+firefox:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   parallel: 5
   script:
     - yarn dev & npx wait-on http://localhost:3004
-    - yarn cypress:silent --record --parallel --browser firefox --group "Firefox" --spec "test/cypress/integration/*"
+    - yarn cypress:silent --parallel --browser firefox --group "Firefox" --spec "test/cypress/integration/*"
+  artifacts:
+    when: always
+    paths:
+      - cypress/videos/**/*.mp4
+      - cypress/screenshots/**/*.png
+    expire_in: 1 day
 
-ui-firefox-mobile:
+firefox-mobile:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   parallel: 5
   script:
     - yarn dev & npx wait-on http://localhost:3004
-    - yarn cypress:silent --record --parallel --browser firefox --group "Firefox - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"
+    - yarn cypress:silent --parallel --browser firefox --group "Firefox - Mobile" --spec "test/cypress/integration/*" --config "viewportWidth=375,viewportHeight=667"
+  artifacts:
+    when: always
+    paths:
+      - cypress/videos/**/*.mp4
+      - cypress/screenshots/**/*.png
+    expire_in: 1 day