diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5dc4ba..e4de5f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,16 +6,22 @@ on: - main jobs: build: + name: build (Node.js ${{ matrix.node-version }}) runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + # Node.js LTS lines declared in the "engines" field of package.json files + node-version: ['22.x', '24.x', '26.x'] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v7 - - name: Set up Node.js - uses: actions/setup-node@v2 + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v7 with: - node-version: '^22.11.0' + node-version: ${{ matrix.node-version }} - name: Install dependencies run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 28c13e8..6b07a40 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,17 +5,23 @@ on: branches: - main jobs: - test: + test-matrix: + name: test (Node.js ${{ matrix.node-version }}) runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + # Node.js LTS lines declared in the "engines" field of package.json files + node-version: ['22.x', '24.x', '26.x'] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v7 - - name: Set up Node.js - uses: actions/setup-node@v2 + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v7 with: - node-version: '^22.11.0' + node-version: ${{ matrix.node-version }} - name: Install dependencies run: | @@ -24,3 +30,16 @@ jobs: - name: Run tests with Jest run: npm test working-directory: packages/library + + # Single status check summing up the whole matrix: it is the "test" check required by + # the branch protection rule of main, so the rule doesn't need to change with the matrix. + test: + if: ${{ always() }} + needs: test-matrix + runs-on: ubuntu-latest + + steps: + - name: Check test matrix result + run: | + echo "Test matrix result: ${{ needs.test-matrix.result }}" + test "${{ needs.test-matrix.result }}" = "success" diff --git a/package-lock.json b/package-lock.json index 202e106..b8371c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,8 +22,8 @@ "typescript": "^5.4.5" }, "engines": { - "node": "^22.11.0", - "npm": "^10.9.0" + "node": "^22.11.0 || ^24.11.0 || ^26.13.0", + "npm": "^10.9.0 || ^11.6.1" } }, "node_modules/@babel/code-frame": { @@ -18233,8 +18233,8 @@ "nodemon": "^3.1.3" }, "engines": { - "node": "^22.11.0", - "npm": "^10.9.0" + "node": "^22.11.0 || ^24.11.0 || ^26.13.0", + "npm": "^10.9.0 || ^11.6.1" } }, "packages/generator": { @@ -18245,13 +18245,13 @@ "nodemon": "^3.1.3" }, "engines": { - "node": "^22.11.0", - "npm": "^10.9.0" + "node": "^22.11.0 || ^24.11.0 || ^26.13.0", + "npm": "^10.9.0 || ^11.6.1" } }, "packages/library": { "name": "reactylon", - "version": "3.5.7", + "version": "3.5.8", "license": "MIT", "dependencies": { "acorn": "^8.11.3", @@ -18294,8 +18294,8 @@ "webpack-dev-server": "^5.0.4" }, "engines": { - "node": "^22.11.0", - "npm": "^10.9.0" + "node": "^22.11.0 || ^24.11.0 || ^26.13.0", + "npm": "^10.9.0 || ^11.6.1" }, "peerDependencies": { "@babylonjs/core": "^7.0.0 || ^8.0.0 || ^9.0.0", diff --git a/package.json b/package.json index 37e9c4e..a95b9c9 100644 --- a/package.json +++ b/package.json @@ -38,8 +38,8 @@ "typescript": "^5.4.5" }, "engines": { - "node": "^22.11.0", - "npm": "^10.9.0" + "node": "^22.11.0 || ^24.11.0 || ^26.13.0", + "npm": "^10.9.0 || ^11.6.1" }, "author": "Simone De Vittorio", "license": "MIT" diff --git a/packages/common/package.json b/packages/common/package.json index 5244ddd..b24ff81 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -16,8 +16,8 @@ "@babylonjs/core": "^9.0.0" }, "engines": { - "node": "^22.11.0", - "npm": "^10.9.0" + "node": "^22.11.0 || ^24.11.0 || ^26.13.0", + "npm": "^10.9.0 || ^11.6.1" }, "author": "Simone De Vittorio", "license": "MIT" diff --git a/packages/generator/package.json b/packages/generator/package.json index 015b7f9..f001e77 100644 --- a/packages/generator/package.json +++ b/packages/generator/package.json @@ -13,8 +13,8 @@ "nodemon": "^3.1.3" }, "engines": { - "node": "^22.11.0", - "npm": "^10.9.0" + "node": "^22.11.0 || ^24.11.0 || ^26.13.0", + "npm": "^10.9.0 || ^11.6.1" }, "author": "Simone De Vittorio", "license": "MIT" diff --git a/packages/library/package.json b/packages/library/package.json index c71b883..6e5c8f4 100644 --- a/packages/library/package.json +++ b/packages/library/package.json @@ -1,12 +1,17 @@ { "name": "reactylon", "version": "3.5.8", - "description": "A powerful multiplatform framework built on Babylon.js and React, designed to create interactive and immersive 3D experiences.", + "description": "Reactylon: a powerful multiplatform React framework built on Babylon.js, designed to create interactive and immersive 3D and XR (VR/AR/MR) experiences for web, mobile and headsets.", "type": "module", "main": "index.js", "types": "index.d.ts", + "author": "Simone De Vittorio", "homepage": "https://reactylon.com/docs", + "bugs": { + "url": "https://github.com/simonedevit/reactylon/issues" + }, "repository": { + "type": "git", "url": "https://github.com/simonedevit/reactylon.git" }, "scripts": { @@ -19,7 +24,27 @@ "test:debug": "NODE_OPTIONS=--experimental-vm-modules node --inspect-brk ../../node_modules/.bin/jest --runInBand", "release": "npm run build && npm run test && commit-and-tag-version --commit-all && git push --follow-tags && bash ../../scripts/publish.sh" }, - "keywords": [], + "keywords": [ + "reactylon", + "react", + "babylonjs", + "babylon.js", + "babylon", + "3d", + "webgl", + "webgpu", + "webxr", + "xr", + "vr", + "ar", + "mr", + "react-native", + "babylon-native", + "spatial-computing", + "react-renderer", + "jsx", + "gamedev" + ], "commit-and-tag-version": { "scripts": { "postchangelog": "bash ../../scripts/changelog.sh" @@ -85,9 +110,8 @@ "webpack-dev-server": "^5.0.4" }, "engines": { - "node": "^22.11.0", - "npm": "^10.9.0" + "node": "^22.11.0 || ^24.11.0 || ^26.13.0", + "npm": "^10.9.0 || ^11.6.1" }, - "author": "Simone De Vittorio", "license": "MIT" }