From 5f63099ed496bf5510f17c3db366fcfde9a0b737 Mon Sep 17 00:00:00 2001 From: uiolee <22849383+uiolee@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:56:14 +0800 Subject: [PATCH 1/3] require node >= 18 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 55b5e98..6a3b264 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,6 @@ "mocha": "^10.0.0" }, "engines": { - "node": ">=14" + "node": ">=18" } } From 6f68e4a4fd42b76b16d01a661d8c9ff37b237d31 Mon Sep 17 00:00:00 2001 From: uiolee <22849383+uiolee@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:56:38 +0800 Subject: [PATCH 2/3] ci: run tests on node18,20 --- .github/workflows/linter.yml | 6 +++--- .github/workflows/tester.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 9f68791..fa9198a 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -7,14 +7,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Use Node.js 14.x + - name: Use Node.js 18 uses: actions/setup-node@v2 with: - node-version: '14.x' + node-version: 18 - name: Install Dependencies run: npm install - name: Lint run: | npm run eslint env: - CI: true \ No newline at end of file + CI: true diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index 49f2367..ce732ea 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: ['14.x', '16.x', '18.x'] + node-version: [18, 20] fail-fast: false steps: - uses: actions/checkout@v2 @@ -27,7 +27,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node-version: ['14.x'] + node-version: [18] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} @@ -43,4 +43,4 @@ jobs: - name: Coveralls uses: coverallsapp/github-action@master with: - github-token: ${{ secrets.github_token }} \ No newline at end of file + github-token: ${{ secrets.github_token }} From 523dac67cf805fcac0548e064a45f6fdeaef88e5 Mon Sep 17 00:00:00 2001 From: uiolee <22849383+uiolee@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:58:17 +0800 Subject: [PATCH 3/3] ci: bump actions --- .github/workflows/linter.yml | 4 ++-- .github/workflows/tester.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index fa9198a..1121f89 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -6,9 +6,9 @@ jobs: linter: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js 18 - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: 18 - name: Install Dependencies diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index ce732ea..9fde5c3 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -11,9 +11,9 @@ jobs: node-version: [18, 20] fail-fast: false steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install Dependencies @@ -29,9 +29,9 @@ jobs: os: [ubuntu-latest] node-version: [18] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install Dependencies @@ -41,6 +41,6 @@ jobs: env: CI: true - name: Coveralls - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.github_token }}