diff --git a/.github/workflows/nodejs-ci-action.yml b/.github/workflows/nodejs-ci-action.yml index a434ad59..72c88634 100644 --- a/.github/workflows/nodejs-ci-action.yml +++ b/.github/workflows/nodejs-ci-action.yml @@ -7,13 +7,13 @@ on: branches: [ main ] jobs: - build: + lts: runs-on: ubuntu-latest strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [14.x, 16.x] steps: - uses: actions/checkout@v2 @@ -32,6 +32,28 @@ jobs: flag-name: run-${{ matrix.node-version }} parallel: true + current: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js 18.x + uses: actions/setup-node@v2 + with: + node-version: 18.x + - run: npm ci + - run: npm run build + - run: npm run test:headless + - run: npm test + - run: npx @pkgjs/support validate + - run: node_modules/nyc/bin/nyc.js report --reporter=lcovonly + - name: Coveralls Parallel + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + flag-name: run-current + parallel: true + finish: needs: build runs-on: ubuntu-latest diff --git a/package.json b/package.json index bbf3f7f4..851a0fff 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "prepare": "husky install", "prebuild": "npm run pretest", - "build": "./test/browser/generate-index.sh && npm run build:browser && npm run build:docs", + "build": "./test/browser/generate-index.sh && NODE_OPTIONS=--openssl-legacy-provider npm run build:browser && npm run build:docs", "build:browser": "webpack --config=config/webpack.config.js", "build:docs": "npm run build:docs:html && npm run build:docs:markdown", "build:docs:html": "documentation build index.js -f html -o docs --config documentation.yml", diff --git a/test/browser/index.js b/test/browser/index.js index 33b0a861..0d0446cf 100644 --- a/test/browser/index.js +++ b/test/browser/index.js @@ -2,6 +2,7 @@ 'use strict'; require('../circuit-shutdown-test.js'); +require('../closed-test.js'); require('../common.js'); require('../context-test.js'); require('../enable-disable-test.js'); @@ -9,6 +10,8 @@ require('../error-filter-test.js'); require('../half-open-test.js'); require('../health-check-test.js'); require('../semaphore-test.js'); +require('../state-test.js'); +require('../status-test.js'); require('../test.js'); require('../volume-threshold-test.js'); require('../warmup-test.js');