Readd UTs run before npm registry auto publication
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Oct 2022 06:36:48 +0000 (08:36 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Oct 2022 06:36:48 +0000 (08:36 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/npmpublish.yml
package.json

index b18277f1c4ab7f8defacc3e217aa0d02975a3735..16a29c22632a0793ecc417d4c92346fc64c75044 100644 (file)
@@ -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
index c80aa710acf42c26bd972cfee8edff0e05866f76..d127367325d13faab27f8479d85ee73fea34b968 100644 (file)
@@ -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 .",