diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ef8456..dc5bea0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,15 +7,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all history - - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - - run: npm i -g npm@8.5.5 + - run: npm i -g npm@10.5.0 - run: npm ci + - run: npm run check-node-version - run: npm run standards test: needs: [ build ] @@ -23,16 +24,26 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 12, 14, 16, 'lts/*', 'latest' ] + node-version: [ 16, 20, 'lts/*', 'latest' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: npm i -g npm@8.5.5 - - run: npm ci # Reinstall the dependencies to ensure they install with the current version of node + - run: npm ci # Reinstall the dependencies to ensure they install with the node's version of npm - run: npm test - name: Coveralls uses: coverallsapp/github-action@v1 + with: + parallel: true + flag-name: ${{ matrix.node-version }} + finish: + needs: [ test ] + runs-on: ubuntu-latest + steps: + - name: Close parallel build + uses: coverallsapp/github-action@v1 + with: + parallel-finished: true diff --git a/.nvmrc b/.nvmrc index 99cdd80..8783404 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.15.0 +20.12.2 diff --git a/package.json b/package.json index 5595b5f..1c991e1 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "version": "2.4.0", "description": "eslint plugins to support our JS Code Standards. See @silvermine/eslint-config-silvermine", "scripts": { - "test": "check-node-version --npm 8.5.5 && nyc mocha -- 'tests/**/*.test.js'", + "check-node-version": "check-node-version --npm 10.5.0", + "test": "nyc mocha -- 'tests/**/*.test.js'", "commitlint": "commitlint --from 2317166", "eslint": "eslint .", "markdownlint": "markdownlint -c .markdownlint.json -i CHANGELOG.md '{,!(node_modules)/**/}*.md'",