|
4 | 4 | pull_request: |
5 | 5 | push: |
6 | 6 | branches: |
7 | | - - master |
8 | | - schedule: |
9 | | - - cron: "0 */6 * * *" # every 6 hours |
| 7 | + - master |
| 8 | + # schedule: |
| 9 | + # - cron: "0 */6 * * *" # every 6 hours |
10 | 10 |
|
11 | 11 | jobs: |
12 | 12 | Tests: |
13 | 13 | runs-on: ubuntu-latest |
14 | 14 |
|
15 | 15 | steps: |
16 | | - - uses: actions/checkout@v2 |
17 | | - - uses: actions/setup-node@v2 |
18 | | - with: |
19 | | - node-version: 16 |
20 | | - cache: npm |
21 | | - - uses: actions/cache@v3 |
22 | | - with: |
23 | | - path: | |
24 | | - node_modules |
25 | | - ~/.cache/Cypress |
26 | | - key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} |
27 | | - restore-keys: | |
28 | | - ${{ runner.os }}-node- |
29 | | - - uses: actions/cache@v3 |
30 | | - with: |
31 | | - path: cypress/application/node_modules |
32 | | - key: ${{ runner.os }}-node-${{ hashFiles('cypress/application/package-lock.json') }} |
33 | | - restore-keys: | |
34 | | - ${{ runner.os }}-node- |
| 16 | + - uses: actions/checkout@v4 |
| 17 | + - uses: actions/setup-node@v4 |
| 18 | + with: |
| 19 | + node-version: 16 |
| 20 | + cache: npm |
| 21 | + - uses: actions/cache@v4 |
| 22 | + with: |
| 23 | + path: | |
| 24 | + node_modules |
| 25 | + ~/.cache/Cypress |
| 26 | + key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} |
| 27 | + restore-keys: | |
| 28 | + ${{ runner.os }}-node- |
| 29 | + - uses: actions/cache@v4 |
| 30 | + with: |
| 31 | + path: cypress/application/node_modules |
| 32 | + key: ${{ runner.os }}-node-${{ hashFiles('cypress/application/package-lock.json') }} |
| 33 | + restore-keys: | |
| 34 | + ${{ runner.os }}-node- |
35 | 35 |
|
36 | | - - run: npm install |
37 | | - - run: npm run test:build |
38 | | - - run: npm run test:integration |
39 | | - env: |
40 | | - CYPRESS_ENVIRONMENT: "${{ github.ref_name == 'master' && 'production' || 'staging' }}" |
41 | | - INTEGRATION_TEST_CLIENT_ID: ${{ secrets.INTEGRATION_TEST_CLIENT_ID }} |
42 | | - INTEGRATION_TEST_API_KEY: ${{ secrets.INTEGRATION_TEST_API_KEY }} |
43 | | - INTEGRATION_TEST_API_HOST: ${{ secrets.INTEGRATION_TEST_API_HOST }} |
44 | | - INTEGRATION_TEST_USER_GUID: ${{ secrets.INTEGRATION_TEST_USER_GUID }} |
| 36 | + - run: npm install |
| 37 | + - run: npm run test:build |
| 38 | + - run: npm run test:integration |
| 39 | + env: |
| 40 | + CYPRESS_ENVIRONMENT: "${{ github.ref_name == 'master' && 'production' || 'staging' }}" |
| 41 | + INTEGRATION_TEST_CLIENT_ID: ${{ secrets.INTEGRATION_TEST_CLIENT_ID }} |
| 42 | + INTEGRATION_TEST_API_KEY: ${{ secrets.INTEGRATION_TEST_API_KEY }} |
| 43 | + INTEGRATION_TEST_API_HOST: ${{ secrets.INTEGRATION_TEST_API_HOST }} |
| 44 | + INTEGRATION_TEST_USER_GUID: ${{ secrets.INTEGRATION_TEST_USER_GUID }} |
0 commit comments