mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-22 19:05:56 -04:00
circleci split build run step into lint, build, and test steps, store test results
This commit is contained in:
parent
8d9bd28097
commit
6634c6c067
1 changed files with 16 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue