|
1 |
| -name: E2E Tests |
2 |
| -on: |
3 |
| - push: |
4 |
| - branches: |
5 |
| - - 4.x #CraftCMS v4 |
6 |
| - pull_request: |
7 |
| - branches: |
8 |
| - - "*" |
9 |
| -jobs: |
10 |
| - tests: |
11 |
| - strategy: |
12 |
| - fail-fast: false |
13 |
| - matrix: |
14 |
| - os: [ ubuntu-latest ] |
15 |
| - scenario: [ |
16 |
| - "cypress/e2e/jobs/copy-source-text-flow/filters.cy.js", |
17 |
| - "cypress/e2e/jobs/copy-source-text-flow/success-path-multiple.cy.js", |
18 |
| - "cypress/e2e/jobs/copy-source-text-flow/success-path-single.cy.js", |
19 |
| - "cypress/e2e/jobs/instant/success-path-multiple.cy.js", |
20 |
| - "cypress/e2e/jobs/instant/success-path-multiple-copy-slug.cy.js", |
21 |
| - "cypress/e2e/jobs/instant/success-path-multiple-copy-slug-and-enable-after-publish.cy.js", |
22 |
| - "cypress/e2e/jobs/instant/success-path-multiple-enable-after-publish.cy.js", |
23 |
| - "cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing.cy.js", |
24 |
| - "cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-copy-slug.cy.js", |
25 |
| - "cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-copy-slug-and-enable-after-publish.cy.js", |
26 |
| - "cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-enable-after-publish.cy.js", |
27 |
| - "cypress/e2e/jobs/verified/success-path-multiple-single-publishing.cy.js", |
28 |
| - "cypress/e2e/jobs/verified/success-path-multiple-single-publishing-copy-slug.cy.js", |
29 |
| - "cypress/e2e/jobs/verified/success-path-multiple-single-publishing-copy-slug-and-enable-after-publish.cy.js", |
30 |
| - "cypress/e2e/jobs/verified/success-path-multiple-single-publishing-enable-after-publish.cy.js", |
31 |
| - "cypress/e2e/jobs/verified/success-path-single.cy.js", |
32 |
| - "cypress/e2e/jobs/instant/success-path-single.cy.js", |
33 |
| - ] |
34 |
| - runs-on: ubuntu-latest |
35 |
| - steps: |
36 |
| - - uses: actions/checkout@v2 |
37 |
| - - name: Set the value |
38 |
| - id: step_one |
39 |
| - run: | |
40 |
| - echo "CYPRESS_SCENARIO=${{ matrix.scenario }}" >> $GITHUB_ENV |
41 |
| - echo "DB_DATABASE=$(uuidgen)" >> $GITHUB_ENV |
42 |
| - - name: Run automation |
43 |
| - working-directory: ./e2e |
44 |
| - run: | |
45 |
| - echo ${DB_DATABASE} |
46 |
| - make up |
47 |
| - make e2e-github |
48 |
| - - name: Copy artifacts |
49 |
| - if: ${{ failure() }} |
50 |
| - working-directory: ./e2e |
51 |
| - run: | |
52 |
| - make backup-db |
53 |
| - mkdir var |
54 |
| - mkdir var/log |
55 |
| - mkdir cypress/craft |
56 |
| - mkdir cypress/craft/storage |
57 |
| - mkdir cypress/craft/config |
58 |
| - docker compose cp app:/app/storage cypress/craft/storage |
59 |
| - docker compose cp app:/app/config cypress/craft/config |
60 |
| - docker compose cp app:/app/composer.json cypress/craft |
61 |
| - docker compose cp app:/app/composer.lock cypress/craft |
62 |
| - docker compose cp app:/var/log var/log |
63 |
| - - name: Use the Upload Artifact GitHub Action |
64 |
| - uses: actions/upload-artifact@v2 |
65 |
| - if: ${{ failure() }} |
66 |
| - with: |
67 |
| - name: "${{ github.job }}_${{ github.run_id }}_${{ github.workflow }}_e2e_artifacts" |
68 |
| - path: | |
69 |
| - ./e2e/cypress/craft |
70 |
| - ./e2e/cypress/screenshots |
71 |
| - ./e2e/cypress/videos |
72 |
| - ./e2e/happy-lager-main/storage |
| 1 | +#TODO: once craftcms v5 released fix all pipelines |
| 2 | +#name: E2E Tests |
| 3 | +#on: |
| 4 | +# push: |
| 5 | +# branches: |
| 6 | +# - 4.x #CraftCMS v4 |
| 7 | +# pull_request: |
| 8 | +# branches: |
| 9 | +# - "*" |
| 10 | +#jobs: |
| 11 | +# tests: |
| 12 | +# strategy: |
| 13 | +# fail-fast: false |
| 14 | +# matrix: |
| 15 | +# os: [ ubuntu-latest ] |
| 16 | +# scenario: [ |
| 17 | +# "cypress/e2e/jobs/copy-source-text-flow/filters.cy.js", |
| 18 | +# "cypress/e2e/jobs/copy-source-text-flow/success-path-multiple.cy.js", |
| 19 | +# "cypress/e2e/jobs/copy-source-text-flow/success-path-single.cy.js", |
| 20 | +# "cypress/e2e/jobs/instant/success-path-multiple.cy.js", |
| 21 | +# "cypress/e2e/jobs/instant/success-path-multiple-copy-slug.cy.js", |
| 22 | +# "cypress/e2e/jobs/instant/success-path-multiple-copy-slug-and-enable-after-publish.cy.js", |
| 23 | +# "cypress/e2e/jobs/instant/success-path-multiple-enable-after-publish.cy.js", |
| 24 | +# "cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing.cy.js", |
| 25 | +# "cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-copy-slug.cy.js", |
| 26 | +# "cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-copy-slug-and-enable-after-publish.cy.js", |
| 27 | +# "cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-enable-after-publish.cy.js", |
| 28 | +# "cypress/e2e/jobs/verified/success-path-multiple-single-publishing.cy.js", |
| 29 | +# "cypress/e2e/jobs/verified/success-path-multiple-single-publishing-copy-slug.cy.js", |
| 30 | +# "cypress/e2e/jobs/verified/success-path-multiple-single-publishing-copy-slug-and-enable-after-publish.cy.js", |
| 31 | +# "cypress/e2e/jobs/verified/success-path-multiple-single-publishing-enable-after-publish.cy.js", |
| 32 | +# "cypress/e2e/jobs/verified/success-path-single.cy.js", |
| 33 | +# "cypress/e2e/jobs/instant/success-path-single.cy.js", |
| 34 | +# ] |
| 35 | +# runs-on: ubuntu-latest |
| 36 | +# steps: |
| 37 | +# - uses: actions/checkout@v2 |
| 38 | +# - name: Set the value |
| 39 | +# id: step_one |
| 40 | +# run: | |
| 41 | +# echo "CYPRESS_SCENARIO=${{ matrix.scenario }}" >> $GITHUB_ENV |
| 42 | +# echo "DB_DATABASE=$(uuidgen)" >> $GITHUB_ENV |
| 43 | +# - name: Run automation |
| 44 | +# working-directory: ./e2e |
| 45 | +# run: | |
| 46 | +# echo ${DB_DATABASE} |
| 47 | +# make up |
| 48 | +# make e2e-github |
| 49 | +# - name: Copy artifacts |
| 50 | +# if: ${{ failure() }} |
| 51 | +# working-directory: ./e2e |
| 52 | +# run: | |
| 53 | +# make backup-db |
| 54 | +# mkdir var |
| 55 | +# mkdir var/log |
| 56 | +# mkdir cypress/craft |
| 57 | +# mkdir cypress/craft/storage |
| 58 | +# mkdir cypress/craft/config |
| 59 | +# docker compose cp app:/app/storage cypress/craft/storage |
| 60 | +# docker compose cp app:/app/config cypress/craft/config |
| 61 | +# docker compose cp app:/app/composer.json cypress/craft |
| 62 | +# docker compose cp app:/app/composer.lock cypress/craft |
| 63 | +# docker compose cp app:/var/log var/log |
| 64 | +# - name: Use the Upload Artifact GitHub Action |
| 65 | +# uses: actions/upload-artifact@v2 |
| 66 | +# if: ${{ failure() }} |
| 67 | +# with: |
| 68 | +# name: "${{ github.job }}_${{ github.run_id }}_${{ github.workflow }}_e2e_artifacts" |
| 69 | +# path: | |
| 70 | +# ./e2e/cypress/craft |
| 71 | +# ./e2e/cypress/screenshots |
| 72 | +# ./e2e/cypress/videos |
| 73 | +# ./e2e/happy-lager-main/storage |
0 commit comments