|
1 | 1 | name: End-to-End (E2E) Testing |
2 | 2 |
|
3 | | -on: |
4 | | - workflow_run: |
5 | | - workflows: ["Staging Deployment"] |
6 | | - types: |
7 | | - - completed |
8 | | - |
9 | | -jobs: |
10 | | - e2e-tests: |
11 | | - name: Run E2E Tests with Cypress |
12 | | - runs-on: ubuntu-latest |
13 | | - |
14 | | - steps: |
15 | | - - name: Checkout code |
16 | | - uses: actions/checkout@v3 |
17 | | - |
18 | | - - name: Set up Node.js |
19 | | - uses: actions/setup-node@v3 |
20 | | - with: |
21 | | - node-version: '16' |
22 | | - |
23 | | - - name: Install dependencies |
24 | | - run: npm install |
25 | | - |
26 | | - - name: Install Cypress |
27 | | - run: npm install cypress --save-dev |
28 | | - |
29 | | - - name: Start Staging Server |
30 | | - # This should start your staging server for Cypress to test against. |
31 | | - # Replace 'npm run start-staging' with the actual command that starts your staging environment. |
32 | | - run: npm run start-staging & |
33 | | - env: |
34 | | - STAGING_API_KEY: ${{ secrets.STAGING_API_KEY }} |
35 | | - STAGING_API_URL: ${{ secrets.STAGING_API_URL }} |
36 | | - |
37 | | - - name: Run Cypress Tests |
38 | | - run: npx cypress run |
| 3 | +# Disabled workflow for E2E Testing |
| 4 | + |
| 5 | +# on: |
| 6 | +# workflow_run: |
| 7 | +# workflows: ["Staging Deployment"] |
| 8 | +# types: |
| 9 | +# - completed |
| 10 | + |
| 11 | +# jobs: |
| 12 | +# e2e-tests: |
| 13 | +# name: Run E2E Tests with Cypress |
| 14 | +# runs-on: ubuntu-latest |
| 15 | + |
| 16 | +# steps: |
| 17 | +# - name: Checkout code |
| 18 | +# uses: actions/checkout@v3 |
| 19 | + |
| 20 | +# - name: Set up Node.js |
| 21 | +# uses: actions/setup-node@v3 |
| 22 | +# with: |
| 23 | +# node-version: '16' |
| 24 | + |
| 25 | +# - name: Install dependencies |
| 26 | +# run: npm install |
| 27 | + |
| 28 | +# - name: Install Cypress |
| 29 | +# run: npm install cypress --save-dev |
| 30 | + |
| 31 | +# - name: Start Staging Server |
| 32 | +# # This should start your staging server for Cypress to test against. |
| 33 | +# # Replace 'npm run start-staging' with the actual command that starts your staging environment. |
| 34 | +# run: npm run start-staging & |
| 35 | +# env: |
| 36 | +# STAGING_API_KEY: ${{ secrets.STAGING_API_KEY }} |
| 37 | +# STAGING_API_URL: ${{ secrets.STAGING_API_URL }} |
| 38 | + |
| 39 | +# - name: Run Cypress Tests |
| 40 | +# run: npx cypress run |
0 commit comments