Skip to content

Commit

Permalink
Chore: adds test-results to circle-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Apr 26, 2021
1 parent 5fb0e8d commit 767c5b3
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .circleci/config.yml
@@ -1,4 +1,5 @@
defaults: &defaults
resource_class: small
docker:
- image: circleci/node:14
cache-defaults: &cache-defaults
Expand All @@ -11,10 +12,10 @@ aliases:
command: npm run coveralls
- &coverage
name: Test Coverage
command: npm run test:coverage
command: npm run test:coverage -- --reporter mocha-junit-reporter --reporter-options mochaFile=reports/test-results/mocha/test-results.xml
- &lint
name: JavaScript Linter
command: npm run test:lint
command: npm run test:lint -- --format junit --output-file ./reports/test-results/eslint/eslint.xml
- &debt
name: Technical Debt
command: npm run test:debt
Expand Down Expand Up @@ -54,17 +55,21 @@ jobs:
- run: *debt
- run: *coverage
- store_test_results:
path: reports
path: reports/test-results
- store_artifacts:
path: reports
- store_artifacts:
path: tmp/tests
- run: *coveralls
test-package:
<<: *defaults
steps:
- checkout
- restore_cache:
<<: *cache-defaults
- run: *test-package
- run: *test-package
- store_artifacts:
path: tmp
deploy:
<<: *defaults
steps:
Expand Down
2 changes: 1 addition & 1 deletion .mocharc.json
@@ -1,7 +1,7 @@
{
"diff": true,
"extension": ["js"],
"reporter": "spec",
"reporter": ["spec"],
"slow": 100,
"timeout": 30000,
"ui": "qunit",
Expand Down
1 change: 1 addition & 0 deletions .npmignore
@@ -1,6 +1,7 @@
.*
*
!lib/*
!lib/**/*
!README.md
!package.json
!package-lock.json
Expand Down
59 changes: 59 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -71,6 +71,7 @@
"jscpd": "^3.3.25",
"lockfile-lint": "^4.6.2",
"mocha": "^6.2.3",
"mocha-junit-reporter": "^2.0.0",
"nyc": "^14.1.1",
"rollup": "^2.45.2",
"semantic-release": "^17.4.2",
Expand Down

0 comments on commit 767c5b3

Please sign in to comment.