From 243f801b1772b08a608b1fd2666e59f1697fae8f Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Mon, 22 Jan 2024 15:54:11 +0700 Subject: [PATCH] v4.0.2 - Update CI config --- .github/workflows/ci-test.yml | 27 +++++++++++++++++++-------- .github/workflows/codeql-analysis.yml | 2 +- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index dd0e193..0c107af 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -8,17 +8,17 @@ on: [push, pull_request] jobs: test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: matrix: - node_version: [14.x, 16.x, 18.x, 20.x] + node_version: [18.x, 20.x, 21.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup Node.js v${{ matrix.node_version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node_version }} @@ -33,18 +33,29 @@ jobs: npm run build --if-present npm run test - - name: sync to coveralls - uses: coverallsapp/github-action@v1.1.2 + - name: Coveralls Parallel + uses: coverallsapp/github-action@v2 with: + flag-name: run-${{ join(matrix.*, '-') }} + parallel: true github-token: ${{ secrets.GITHUB_TOKEN }} - name: cache node modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - + finish: + needs: test + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@v2 + with: + parallel-finished: true + carryforward: "run-18.x,run-20.x,run-21.x" diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2124bd6..a77d776 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL