diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 64c1bbd6..79ce359c 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [ 18.x, 20.x ] + node-version: [ 20.x, 22.x ] steps: # Checkout the repository @@ -40,8 +40,6 @@ jobs: # Upload coverage to Coveralls - name: Coveralls - # uses: coverallsapp/github-action@v2 - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage/lcov.info diff --git a/package.json b/package.json index 17b7d024..f9ec0590 100644 --- a/package.json +++ b/package.json @@ -20,12 +20,15 @@ "scripts": { "clean": "rm -rf dist/build && rm -r dist/lib/*", "build": "npm run build:library && npm run build:browser", + "cover": "npm run cover:unit && npm run cover:e2e && npm run cover:report", + "test": "npm run test:unit && npm run test:e2e", + "doc": "typedoc", + "dev": "nodemon -w src -w test -w rollup.config.mjs -e ts,js -x 'npm run clean && npm run build && npm run cover'", "build:watch": "nodemon -w src -w test -w rollup.config.mjs -e ts,js -x 'npm run build'", "build:browser": "rollup --config", "build:library": "cp src/types.d.ts dist/lib && tsc -d", "build:browser:watch": "rollup --config -w", "build:library:watch": "tsc -w", - "doc": "typedoc", "test:unit": "NODE_ENV=test mocha -r ts-node/register --exit", "cover:unit": "nyc --silent npm run test:unit", "test:unit:watch": "nodemon -w src -w test -e ts -x 'npm run test:unit'", @@ -33,12 +36,9 @@ "test:e2e": "nightwatch --headless test/specs/*.js", "cover:e2e": "nyc --silent --no-clean npm run test:e2e", "test:e2e:watch": "nodemon -w src -w test -e ts,js -x 'npm run test:e2e'", - "test": "npm run test:unit && npm run test:e2e", "test:watch": "nodemon -w src -w test -e ts -x 'npm run test'", - "cover": "npm run cover:unit && npm run cover:e2e && npm run cover:report", "cover:integration": "nyc --silent --no-clean npm run test:integration", - "cover:report": "nyc report --reporter=lcov --reporter=text", - "dev": "nodemon -w src -w test -w rollup.config.mjs -e ts,js -x 'npm run clean && npm run build && npm run cover'" + "cover:report": "nyc report --reporter=lcov --reporter=text" }, "devDependencies": { "@rollup/plugin-node-resolve": "^15.2.3",