Skip to content

Commit

Permalink
Merge pull request #18538 from apache/fix/jest-canvas-mock
Browse files Browse the repository at this point in the history
chore: update `jest-canvas-mock` to fix test fails in node v18
  • Loading branch information
pissang authored Apr 23, 2023
2 parents f22a8ed + 5fd7a07 commit d7ac6c3
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- name: Fetch commit count
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/nightly-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -26,6 +26,8 @@ jobs:
uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org/
node-version: ${{ matrix.node-version }}

- name: Setup and publish nightly
run: |
node build/nightly/prepare.js --next
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org/
node-version: ${{ matrix.node-version }}

- name: Setup and publish nightly
run: |
node build/nightly/prepare.js
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/source-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"globby": "11.0.0",
"husky": "^4.2.5",
"jest": "^26.6.1",
"jest-canvas-mock": "^2.2.0",
"jest-canvas-mock": "^2.5.0",
"jshint": "2.13.5",
"magic-string": "^0.25.7",
"open": "6.4.0",
Expand Down

0 comments on commit d7ac6c3

Please sign in to comment.