From 35f309ab0b0a7c15ba6cb04279e6abd1a596ce5d Mon Sep 17 00:00:00 2001 From: jfactory-es Date: Sun, 27 Oct 2024 06:52:29 +0000 Subject: [PATCH] 1.8.0 --- .github/workflows/nodejs.yml | 15 ++++++++++++--- scripts/build/build.js | 4 ++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 8fc23f9..5a2d87c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -28,13 +28,22 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - name: npm install, build, and test + + - name: Install dependencies + run: npm ci + - name: Run pre-build tests run: | - npm ci npm run test:source npm run test:es:prod npm run test:es:dev - npm run build + env: + CI: true + - name: Build project + run: npm run build + env: + CI: true + - name: Run post-build tests + run: | npm run test:source npm run test:es:prod npm run test:es:dev diff --git a/scripts/build/build.js b/scripts/build/build.js index 089121d..fb32e29 100644 --- a/scripts/build/build.js +++ b/scripts/build/build.js @@ -71,7 +71,7 @@ async function run(filename = 'rollup.jfactory.config.cjs') { if (envCheckResult.warn.length) { for (const value of envCheckResult.warn) { - console.warn(colors.red(`Env warning: ${value}`)); + console.log(colors.red(`Env warning: ${value}`)); } } if (envCheckResult.error.length) { @@ -81,7 +81,7 @@ async function run(filename = 'rollup.jfactory.config.cjs') { process.exit(1); } if (warnings.count) { - console.warn(colors.red(`Compilation warnings: ${warnings.count}`)); + console.log(colors.red(`Compilation warnings: ${warnings.count}`)); } })