Skip to content

Commit b1ee503

Browse files
chore: update package-lock.json and performance test (#2583)
- Fix the infinite loop in the GitHub Actions for `npm ci` - Make the performance test pass
1 parent 58bea58 commit b1ee503

File tree

15 files changed

+10192
-8130
lines changed

15 files changed

+10192
-8130
lines changed

.github/workflows/create-build-url.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v4
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
cache: "npm"
2323
- name: Install composer deps
2424
run: composer install --no-dev --prefer-dist --no-progress --no-suggest

.github/workflows/create-tag.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,14 @@ jobs:
88
create_tag:
99
runs-on: ubuntu-latest
1010
if: "! contains(github.event.head_commit.message, '[skip ci]')"
11-
strategy:
12-
matrix:
13-
node-version: [18.x]
1411
steps:
1512
- uses: actions/checkout@master
1613
with:
1714
persist-credentials: false
18-
- name: Build files using ${{ matrix.node-version }}
15+
- name: Build files using Node
1916
uses: actions/setup-node@v4
2017
with:
21-
node-version: ${{ matrix.node-version }}
18+
node-version: 20
2219
cache: "npm"
2320
- name: Release new version
2421
id: release

.github/workflows/deploy-stagging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v4
2121
- uses: actions/setup-node@v4
2222
with:
23-
node-version: 18
23+
node-version: 20
2424
cache: "npm"
2525
- name: Install composer deps
2626
run: composer install --no-dev --prefer-dist --no-progress --no-suggest

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@master
1212
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 18
14+
node-version: 20
1515
cache: "npm"
1616
- name: Get the version
1717
id: get_version

.github/workflows/e2e-js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 18
19+
node-version: 20
2020
cache: "npm"
2121
# run composer install
2222
- name: Install composer

.github/workflows/test-js.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,15 @@ jobs:
88
run:
99
runs-on: ubuntu-latest
1010
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
11-
strategy:
12-
matrix:
13-
node-version: [18.x]
1411
name: JS Test
1512
steps:
1613
- uses: actions/checkout@master
1714
with:
1815
persist-credentials: false
19-
- name: Build files using ${{ matrix.node-version }}
16+
- name: Build files using 20
2017
uses: actions/setup-node@v4
2118
with:
22-
node-version: ${{ matrix.node-version }}
19+
node-version: 20
2320
cache: "npm"
2421
- name: Lint js files
2522
run: |

.github/workflows/test-php.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/checkout@v4
4949
- uses: actions/setup-node@v4
5050
with:
51-
node-version: 18
51+
node-version: 20
5252
cache: "npm"
5353
# run composer install
5454
- name: Install composer
@@ -58,15 +58,6 @@ jobs:
5858
run: |
5959
printf "{\"key\":\"${{ secrets.OTTER_PRO_LICENSE }}\"}" > license.json
6060
61-
# setup the node cache (node_modules) with github actions cache
62-
- name: Cache Node - npm
63-
uses: actions/cache@v4
64-
with:
65-
path: ~/.npm
66-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
67-
restore-keys: |
68-
${{ runner.os }}-node-cache-
69-
7061
- name: npm ci
7162
run: |
7263
npm ci

.github/workflows/update-translations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
steps:
1414
- name: Check out source files
1515
uses: actions/checkout@v4
16-
- name: Setup node 18
16+
- name: Setup node
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: 18.x
19+
node-version: 20
2020
cache: "npm"
2121
- name: Install composer deps
2222
env:

.wp-env.override.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"tests": {
2121
"config": {
2222
"WP_DEBUG": false,
23-
"WP_DEBUG_DISPLAY": false
23+
"WP_DEBUG_DISPLAY": false,
24+
"ENABLE_OTTER_PRO_DEV": true
2425
},
2526
"plugins": [
2627
"."

0 commit comments

Comments
 (0)