Skip to content

Commit 66ea188

Browse files
committed
chore: add test_build for testing
1 parent 1346e82 commit 66ea188

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,20 @@ jobs:
2424
- name: Versions
2525
run: apm -v
2626

27-
- name: Install dependencies and build
27+
- name: Install dependencies
2828
run: |
2929
apm install --production
3030
npm install --only=dev
31-
npm run build
3231
3332
- name: Run Ubuntu tests
3433
if: ${{ contains(matrix.os, 'ubuntu') }}
35-
run: npm run test
34+
run: npm run test_build && npm run test
3635

3736
# One or two of the tests are flaky on Windows/MacOs
3837
- name: Run Windows and MacOS tests
3938
if: ${{ !contains(matrix.os, 'ubuntu') }}
4039
continue-on-error: true
41-
run: npm run test
40+
run: npm run test_build && npm run test
4241

4342
Lint:
4443
if: "!contains(github.event.head_commit.message, '[skip ci]')"

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"lint": "standard --fix lib/**/*.js spec/**/*.js",
1313
"clean": "shx rm -rf dist .parcel-cache",
1414
"dev": "cross-env NODE_ENV=development parcel watch --target main lib/main.js",
15+
"test_build": "cross-env NODE_ENV=test parcel build --target main lib/main.js --no-minify",
1516
"build": "cross-env NODE_ENV=production parcel build --target main lib/main.js",
1617
"build-commit": "npm run clean && build-commit -o dist",
1718
"esdoc": "esdoc -c esdoc.json",
@@ -30,7 +31,10 @@
3031
"electron": false
3132
},
3233
"outputFormat": "commonjs",
33-
"isLibrary": true
34+
"isLibrary": true,
35+
"sourceMap": {
36+
"inlineSources": true
37+
}
3438
}
3539
},
3640
"contributors": [

0 commit comments

Comments
 (0)