From 929a17d8566cd71e58ec6c5d69f5b01aadb2f77f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Mon, 6 May 2024 18:00:36 +0800 Subject: [PATCH] ci: run test on node v22 --- .github/workflows/main.yml | 9 +++++---- .npmrc | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ba8e922f..7659f8b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,7 @@ jobs: fail-fast: false matrix: node-version: + - 22 - 21 - 20 - 18 @@ -22,7 +23,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: npm install --force # ts-eslint does not support eslint v9 yet. + - run: npm install - run: npm test lint: @@ -32,7 +33,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "lts/*" - - run: npm install --force # ts-eslint does not support eslint v9 yet. + - run: npm install - run: npm run lint eslint8: @@ -42,7 +43,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "lts/*" - - run: npm install --force # ts-eslint does not support eslint v9 yet. + - run: npm install - run: npm install --save-dev eslint@8 - run: npm test @@ -54,6 +55,6 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "lts/*" - - run: npm install --force # ts-eslint does not support eslint v9 yet. + - run: npm install - run: npm install --save-dev eslint@8 # eslint-remote-tester does not support eslint v9. - run: npm run test:remote diff --git a/.npmrc b/.npmrc index 3f4a3eaf..02996f37 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ registry = https://registry.npmjs.org/ package-lock = false +force = true