File tree Expand file tree Collapse file tree 3 files changed +40
-24
lines changed Expand file tree Collapse file tree 3 files changed +40
-24
lines changed Original file line number Diff line number Diff line change 77 ci :
88 runs-on : ubuntu-latest
99 steps :
10- - uses : actions/checkout@v1
10+ - uses : actions/checkout@v4
1111
1212 - name : Launch Magento test environment
1313 env :
1414 PHP : " 81"
1515 COMPOSE_INTERACTIVE_NO_CLI : " 1"
1616 run : make up
1717
18- - uses : cypress-io/github-action@v2
18+ - name : Setup Node
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : ' 20'
22+ cache : ' npm'
23+
24+ - name : Install dependencies
25+ run : npm ci
26+
27+ - name : Cypress run
28+ uses : cypress-io/github-action@v6
1929 with :
2030 project : ./test/e2e
2131 config : baseUrl=http://localhost:3000
32+ browser : chrome
33+ wait-on : ' http://localhost:3000'
34+ wait-on-timeout : 120
2235 env :
2336 CYPRESS_API_KEY : ${{ secrets.API_KEY }}
2437 CYPRESS_MAGENTO_VERSION : " 2.4"
38+ NODE_OPTIONS : " --max-old-space-size=4096"
Original file line number Diff line number Diff line change 77 ci :
88 runs-on : ubuntu-latest
99 steps :
10- - uses : actions/checkout@v1
10+ - uses : actions/checkout@v4
1111
1212 - name : Launch Magento test environment
1313 env :
1414 PHP : " 82"
1515 COMPOSE_INTERACTIVE_NO_CLI : " 1"
1616 run : make up
1717
18- - uses : cypress-io/github-action@v2
18+ - name : Setup Node
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : ' 20'
22+ cache : ' npm'
23+
24+ - name : Install dependencies
25+ run : npm ci
26+
27+ - name : Cypress run
28+ uses : cypress-io/github-action@v6
1929 with :
2030 project : ./test/e2e
2131 config : baseUrl=http://localhost:3000
32+ browser : chrome
33+ wait-on : ' http://localhost:3000'
34+ wait-on-timeout : 120
2235 env :
2336 CYPRESS_API_KEY : ${{ secrets.API_KEY }}
2437 CYPRESS_MAGENTO_VERSION : " 2.4"
38+ NODE_OPTIONS : " --max-old-space-size=4096"
Original file line number Diff line number Diff line change 99
1010 strategy :
1111 matrix :
12- node-version : [18 .x]
12+ node-version : [20 .x]
1313
1414 steps :
15- - uses : actions/checkout@v1
15+ - uses : actions/checkout@v4
1616
1717 - name : Use Node.js ${{ matrix.node-version }}
18- uses : actions/setup-node@v1
18+ uses : actions/setup-node@v4
1919 with :
2020 node-version : ${{ matrix.node-version }}
21+ cache : ' npm'
2122
22- - name : Cache node modules
23- uses : actions/cache@v1
24- with :
25- path : ~/.npm
26- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
27-
28- - name : Install
29- run : npm install
23+ - name : Install dependencies
24+ run : npm ci
3025
3126 - name : Build
3227 run : npm run build
3328
34- - name : Build test bundles
35- run : npm run test:build
36-
37- - uses : cypress-io/github-action@v2
38- with :
39- project : ./test/snapshot
40- env :
41- CYPRESS_API_KEY : ${{ secrets.API_KEY }}
42- CYPRESS_MAGENTO_VERSION : " 2.4"
29+ - name : Test
30+ run : npm test
You can’t perform that action at this time.
0 commit comments