From 48f01e6056dd8721c3f37b0a0a530aafc113df07 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Tue, 19 Apr 2022 19:08:23 -0400 Subject: [PATCH 1/3] Test on Node.js 16.x and 18.x. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a63a2996..431811e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: timeout-minutes: 10 strategy: matrix: - node-version: [6.x, 8.x, 10.x, 12.x, 14.x] + node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 16.x, 18.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} From dd1c202df3b7d87daaf1219e42413c8d7b0fb4cc Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Wed, 22 May 2024 13:32:03 -0400 Subject: [PATCH 2/3] Test on Node.js 20.x and 22.x. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 431811e0..e8d6a0b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: timeout-minutes: 10 strategy: matrix: - node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 16.x, 18.x] + node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} From 0be960f308cb3f2f864fd2c46a72ab196c38592b Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Wed, 22 May 2024 23:34:06 -0400 Subject: [PATCH 3/3] Fix Node.js versions used during testing. - Use older Node.js to install due to webpack issues. - Use target Node.js version to test. --- .github/workflows/main.yml | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8d6a0b0..67556e93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,12 +10,18 @@ jobs: matrix: node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + # FIXME: Install/build with 16.x until webpack is updated + - name: Use Node.js 16.x + uses: actions/setup-node@v4 + with: + node-version: 16.x + - run: npm install + # FIXME: Run tests with target version until webpack is updated - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: npm install - name: Run test with Node.js ${{ matrix.node-version }} run: npm run test-node test-karma: @@ -23,12 +29,12 @@ jobs: timeout-minutes: 10 strategy: matrix: - node-version: [14.x] + node-version: [16.x] bundler: [webpack, browserify] 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 }} - run: npm install @@ -41,11 +47,11 @@ jobs: # timeout-minutes: 10 # strategy: # matrix: -# node-version: [14.x] +# node-version: [16.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 }} # - run: npm install @@ -56,18 +62,19 @@ jobs: timeout-minutes: 10 strategy: matrix: - node-version: [14.x] + node-version: [16.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 }} - run: npm install - name: Generate coverage report run: npm run coverage-ci - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: file: ./coverage/lcov.info fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }}