Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
node-version: [22.x, 24.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- name: Unit tests and coverage
run: npm run test:coverage
- name: Upload coverage report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: unit-test-coverage
name: unit-test-coverage-${{ matrix.node-version }}
path: coverage/
retention-days: 7
- run: npm run lint
if: matrix.node-version == '20.x'
if: matrix.node-version == '22.x'
- run: npm run build --if-present
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
steps:
-
name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive
-
name: Setup Node
uses: actions/setup-node@v2.4.0
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "24"
-
name: Setup Dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '24'
cache: 'npm'
cache-dependency-path: 'package-lock.json'

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Apache ShenYu Dashboard is frontend of a management background for [Apache ShenYu](https://github.com/apache/shenyu). The API interface is in the [Apache Shenyu Admin](https://github.com/apache/shenyu/tree/master/shenyu-admin) module.

## Prerequisite
- Node.js 20.x and npm 10.x (the test and build CI baseline). Run `nvm use`
- Node.js 22 LTS or newer (24 recommended; CI builds on both). Run `nvm use`
if you manage Node.js with nvm; the version is recorded in `.nvmrc`.

## How to Build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"**/*.less": "stylelint --syntax less"
},
"engines": {
"node": ">=8.0.0"
"node": ">=22.12.0"
},
"browserslist": [
"> 1%",
Expand Down
Loading