chore: update build script and build workflow
This commit is contained in:
@@ -52,6 +52,10 @@ jobs:
|
||||
TEST_SURVEY_ID: ${{ vars.TEST_SURVEY_ID }}
|
||||
TEST_SURVEY_RECORD_ID: ${{ vars.TEST_SURVEY_RECORD_ID }}
|
||||
TEST_TEXT_FIELD: ${{ vars.TEST_TEXT_FIELD }}
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
with:
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@
|
||||
"lint-fix": "eslint --fix --ignore-path .eslintignore --ext .js,.ts . --max-warnings=0",
|
||||
"format-staged": "pretty-quick --staged",
|
||||
"format": "pretty-quick",
|
||||
"build": "npm run tests && npm run clean && tsc --project tsconfig.cjs.json && tsc --project tsconfig.esm.json && node ./scripts/create_dist_package_json.js",
|
||||
"build": "npm run test-coverage:ci && npm run clean && tsc --project tsconfig.cjs.json && tsc --project tsconfig.esm.json && node ./scripts/create_dist_package_json.js",
|
||||
"test:unit": "mocha -r ts-node/register",
|
||||
"test:integration": "mocha -r ts-node/register -r integrationTests/mochaRootHooks.ts",
|
||||
"tests:unit": "mocha -R progress -r ts-node/register ./tests/**/*.spec.ts",
|
||||
|
||||
Reference in New Issue
Block a user