- name: Install
run: npm ci
- - name: Production Build
- run: npm run build:prod
-
- name: Lint
run: npm run lint
- # - name: Production Tests & Coverage
- # run: |
- # npm run test:prod
- # npm run coverage
+ - name: Tests & Coverage
+ run: |
+ npm run test
+ npm run coverage
env:
CI: true
+ - name: Production Build
+ run: npm run build:prod
+
publish-npm:
needs: build
runs-on: ubuntu-latest
"benchmark:prod": "npm run build:prod && node -r source-map-support/register benchmarks/internal/bench.js",
"test": "npm run build && nyc mocha 'tests/**/*.test.js'",
"test:debug": "npm run build && mocha --no-parallel --inspect 'tests/**/*.test.js'",
- "test:prod": "npm run build:prod && nyc mocha 'tests/**/*.test.js'",
"coverage": "nyc report --reporter=lcov",
"coverage:html": "nyc report --reporter=html",
"format": "prettier --loglevel silent --write .; prettierx --write .",