Skip to content

Commit 08ebd32

Browse files
committed
update workflows
1 parent d73de03 commit 08ebd32

File tree

3 files changed

+40
-24
lines changed

3 files changed

+40
-24
lines changed

.github/workflows/ci-81.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,32 @@ jobs:
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"

.github/workflows/ci-82.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,32 @@ jobs:
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"

.github/workflows/ci-bindings.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,22 @@ jobs:
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

0 commit comments

Comments
 (0)