From: Jérôme Benoit Date: Sun, 9 Oct 2022 06:36:48 +0000 (+0200) Subject: Readd UTs run before npm registry auto publication X-Git-Tag: v2.2.2~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4b85ba430f4829569855cbf51b32a9e5cca01564;p=poolifier.git Readd UTs run before npm registry auto publication Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index b18277f1..16a29c22 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -20,19 +20,19 @@ jobs: - 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 diff --git a/package.json b/package.json index c80aa710..d1273673 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "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 .",