circleci split build run step into lint, build, and test steps, store test results

This commit is contained in:
BryceLTaylor 2021-02-02 10:36:44 -05:00
parent 8d9bd28097
commit 6634c6c067

View file

@ -47,13 +47,27 @@ aliases:
- checkout
- *restore_npm_cache
- run:
name: "Run npm test to build"
name: "setup and run lint tests"
command: |
npm --production=false install
WWW_VERSION=${CIRCLE_SHA1:0:5} npm run test
npm run test:lint
- run:
name: "run npm build"
command: |
WWW_VERSION=${CIRCLE_SHA1:0:5} npm run build
- run:
name: "Run unit tests"
command: |
npm run test:unit:jest
npm run test:unit:tap:ci
npm run test:unit:convertReportToXunit
- *save_npm_cache
- *save_git_cache
- *save_build_cache
- store_test_results:
path: test/results
- store_artifacts:
path: test/results
- &deploy
<<: *defaults
steps: