Skip to content

Commit 02be7a6

Browse files
committed
ci: update integration test workflow
1 parent 1a995d8 commit 02be7a6

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

‎.github/workflows/integration-tests.yml‎

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,41 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
8-
schedule:
9-
- cron: "0 */6 * * *" # every 6 hours
7+
- master
8+
# schedule:
9+
# - cron: "0 */6 * * *" # every 6 hours
1010

1111
jobs:
1212
Tests:
1313
runs-on: ubuntu-latest
1414

1515
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-
3535
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

Comments
 (0)