Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to node 22 #453

Merged
merged 15 commits into from
Feb 9, 2025
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/[email protected]
with:
node-version: 18.x
node-version: 22.x
- run: npm i && npm run lint
build:

Expand All @@ -27,17 +27,17 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v1
with:
node-version: 18.x
node-version: 22.x
- name: Setup Java JDK
uses: actions/setup-java@v1
with:
java-version: 21
java-package: jre
- name: Install xi
run: sudo apt-get install -y libxi-dev libglu1-mesa-dev
run: sudo apt-get install -y libxi-dev libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential libglu1-mesa-dev libglew-dev
- run: npm install
- run: npm run jestTest -- -t ${{ matrix.mcVersion }}
- uses: actions/upload-artifact@v4
Expand Down
6 changes: 4 additions & 2 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = {
launch: {
args: ['--no-sandbox', '--disable-setuid-sandbox']
}
args: ['--no-sandbox', '--disable-setuid-sandbox'],
headless: true
},
browserContext: 'default'
}
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
preset: 'jest-puppeteer',
testRegex: './*\\.test\\.js$'
testRegex: './*\\.test\\.js$',
testEnvironmentOptions: require('./jest-puppeteer.config.js'),
testEnvironment: 'jest-environment-puppeteer'
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"devDependencies": {
"assert": "^2.0.0",
"buffer": "^6.0.3",
"canvas": "^2.6.1",
"canvas": "^3.1.0",
"fs-extra": "^11.0.0",
"jest": "^27.0.4",
"jest-puppeteer": "^6.0.0",
"jest": "^29.7.0",
"jest-puppeteer": "^11.0.0",
"minecraft-assets": "^1.9.0",
"minecraft-wrap": "^1.3.0",
"minecrafthawkeye": "^1.2.5",
Expand All @@ -51,9 +51,9 @@
"prismarine-schematic": "^1.2.0",
"prismarine-viewer": "file:./",
"process": "^0.11.10",
"puppeteer": "^16.0.0",
"puppeteer": "^22.8.2",
"standard": "^17.1.0",
"webpack": "^5.10.2",
"webpack-cli": "^5.1.1"
"webpack-cli": "^6.0.1"
}
}