From 4b85ba430f4829569855cbf51b32a9e5cca01564 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 9 Oct 2022 08:36:48 +0200 Subject: [PATCH] Readd UTs run before npm registry auto publication MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/npmpublish.yml | 14 +++++++------- package.json | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) 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 .", -- 2.34.1