3333 with :
3434 issue-number : ${{ github.event.issue.number }}
3535 body : >-
36- Cypress E2E tests have been initiated (for more information, click
36+ E2E tests have been initiated (for more information, click
3737 [here](https://github.com/webiny/webiny-js/actions/runs/${{
3838 github.run_id }})). :sparkles:
3939
@@ -148,7 +148,6 @@ jobs:
148148 - build
149149 name : Constants - DDB
150150 outputs :
151- cypress-folders : ${{ steps.list-cypress-folders.outputs.cypress-folders }}
152151 pulumi-backend-url : ${{ steps.pulumi-backend-url.outputs.pulumi-backend-url }}
153152 steps :
154153 - uses : actions/setup-node@v5
@@ -162,12 +161,6 @@ jobs:
162161 run : gh pr checkout ${{ github.event.issue.number }}
163162 env :
164163 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
165- - name : List Cypress tests folders
166- id : list-cypress-folders
167- run : >-
168- echo "cypress-folders=$(node scripts/listCypressTestsFolders.js)" >>
169- $GITHUB_OUTPUT
170- working-directory : ${{ needs.baseBranch.outputs.base-branch }}
171164 - name : Get Pulumi backend URL
172165 id : get-pulumi-backend-url
173166 run : >-
@@ -184,13 +177,10 @@ jobs:
184177 - e2e-wby-cms-ddb-constants
185178 - checkComment
186179 name : E2E (DDB) - Project setup
187- outputs :
188- cypress-config : ${{ steps.save-cypress-config.outputs.cypress-config }}
189180 environment : next
190181 env :
191182 NODE_OPTIONS : ' --max_old_space_size=4096'
192183 YARN_ENABLE_IMMUTABLE_INSTALLS : false
193- CYPRESS_MAILOSAUR_API_KEY : ${{ secrets.CYPRESS_MAILOSAUR_API_KEY }}
194184 PULUMI_CONFIG_PASSPHRASE : ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
195185 PULUMI_SECRETS_PROVIDER : ${{ secrets.PULUMI_SECRETS_PROVIDER }}
196186 WEBINY_PULUMI_BACKEND : ${{ needs.e2e-wby-cms-ddb-constants.outputs.pulumi-backend-url }}
@@ -313,23 +303,24 @@ jobs:
313303
314304 gh api repos/${{ github.repository }}/issues/comments/$COMMENT_ID -X
315305 PATCH --field body=@/tmp/comment.txt
316- - name : Create Cypress config
317- run : yarn setup-cypress --projectFolder ../new-webiny-project
318- working-directory : ${{ needs.baseBranch.outputs.base-branch }}
319- - name : Save Cypress config
320- id : save-cypress-config
321- run : >-
322- echo "cypress-config=$(cat cypress-tests/cypress.config.ts | tr -d
323- '\t\n\r')" >> $GITHUB_OUTPUT
324- working-directory : ${{ needs.baseBranch.outputs.base-branch }}
325- - name : Install Cypress binary
326- run : cd cypress-tests && yarn cypress install
327- working-directory : ${{ needs.baseBranch.outputs.base-branch }}
328- - name : Cypress - run installation wizard test
329- run : >-
330- yarn cy:run --browser chrome --spec
331- "cypress/e2e/adminInstallation/**/*.cy.js"
306+ - name : E2E - run installation wizard test
332307 working-directory : ${{ needs.baseBranch.outputs.base-branch }}
308+ env :
309+ E2E_ADMIN_URL : ${{ steps.admin-url.outputs.admin-url }}
310+ E2E_INSTALLATION : ' 1'
311+ E2E_TELEMETRY_DISABLED : ' 1'
312+ run : |-
313+ yarn workspace e2e-tests playwright install --with-deps chromium
314+ yarn e2e --tag installation
315+ - name : E2E - upload installation test results
316+ if : failure()
317+ uses : actions/upload-artifact@v6
318+ with :
319+ name : e2e-results-ddb
320+ retention-days : 7
321+ if-no-files-found : ignore
322+ include-hidden-files : true
323+ path : ${{ needs.baseBranch.outputs.base-branch }}/e2e/.e2e
333324 runs-on : ubuntu-latest
334325 permissions :
335326 id-token : write
@@ -340,7 +331,6 @@ jobs:
340331 - build
341332 name : Constants - DDB-OS
342333 outputs :
343- cypress-folders : ${{ steps.list-cypress-folders.outputs.cypress-folders }}
344334 pulumi-backend-url : ${{ steps.pulumi-backend-url.outputs.pulumi-backend-url }}
345335 steps :
346336 - uses : actions/setup-node@v5
@@ -354,12 +344,6 @@ jobs:
354344 run : gh pr checkout ${{ github.event.issue.number }}
355345 env :
356346 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
357- - name : List Cypress tests folders
358- id : list-cypress-folders
359- run : >-
360- echo "cypress-folders=$(node scripts/listCypressTestsFolders.js)" >>
361- $GITHUB_OUTPUT
362- working-directory : ${{ needs.baseBranch.outputs.base-branch }}
363347 - name : Get Pulumi backend URL
364348 id : get-pulumi-backend-url
365349 run : >-
@@ -376,13 +360,10 @@ jobs:
376360 - e2e-wby-cms-ddb-os-constants
377361 - checkComment
378362 name : E2E (DDB-OS) - Project setup
379- outputs :
380- cypress-config : ${{ steps.save-cypress-config.outputs.cypress-config }}
381363 environment : next
382364 env :
383365 NODE_OPTIONS : ' --max_old_space_size=4096'
384366 YARN_ENABLE_IMMUTABLE_INSTALLS : false
385- CYPRESS_MAILOSAUR_API_KEY : ${{ secrets.CYPRESS_MAILOSAUR_API_KEY }}
386367 PULUMI_CONFIG_PASSPHRASE : ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
387368 PULUMI_SECRETS_PROVIDER : ${{ secrets.PULUMI_SECRETS_PROVIDER }}
388369 WEBINY_PULUMI_BACKEND : ${{ needs.e2e-wby-cms-ddb-os-constants.outputs.pulumi-backend-url }}
@@ -526,23 +507,24 @@ jobs:
526507
527508 gh api repos/${{ github.repository }}/issues/comments/$COMMENT_ID -X
528509 PATCH --field body=@/tmp/comment.txt
529- - name : Create Cypress config
530- run : yarn setup-cypress --projectFolder ../new-webiny-project
531- working-directory : ${{ needs.baseBranch.outputs.base-branch }}
532- - name : Save Cypress config
533- id : save-cypress-config
534- run : >-
535- echo "cypress-config=$(cat cypress-tests/cypress.config.ts | tr -d
536- '\t\n\r')" >> $GITHUB_OUTPUT
537- working-directory : ${{ needs.baseBranch.outputs.base-branch }}
538- - name : Install Cypress binary
539- run : cd cypress-tests && yarn cypress install
540- working-directory : ${{ needs.baseBranch.outputs.base-branch }}
541- - name : Cypress - run installation wizard test
542- run : >-
543- yarn cy:run --browser chrome --spec
544- "cypress/e2e/adminInstallation/**/*.cy.js"
510+ - name : E2E - run installation wizard test
545511 working-directory : ${{ needs.baseBranch.outputs.base-branch }}
512+ env :
513+ E2E_ADMIN_URL : ${{ steps.admin-url.outputs.admin-url }}
514+ E2E_INSTALLATION : ' 1'
515+ E2E_TELEMETRY_DISABLED : ' 1'
516+ run : |-
517+ yarn workspace e2e-tests playwright install --with-deps chromium
518+ yarn e2e --tag installation
519+ - name : E2E - upload installation test results
520+ if : failure()
521+ uses : actions/upload-artifact@v6
522+ with :
523+ name : e2e-results-ddb-os
524+ retention-days : 7
525+ if-no-files-found : ignore
526+ include-hidden-files : true
527+ path : ${{ needs.baseBranch.outputs.base-branch }}/e2e/.e2e
546528 runs-on : ubuntu-latest
547529 permissions :
548530 id-token : write
0 commit comments