Skip to content

test: store test result artifacts #465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ jobs:
# install deps
- run: npm i
# lint:
- run: npm run lint
- run: npm run ci:lint
# test!
- run: |
export PATH="$HOME/.poetry/bin:$PATH"
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
npm run test
- store_test_results:
path: ~/reports
- store_artifacts:
path: ~/reports
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"main": "index.js",
"bin": {},
"scripts": {
"ci:lint": "eslint *.js lib/*.js --format junit --output-file ~/reports/eslint.xml && prettier -c index.js lib/*.js",
"test": "node test.js",
"lint": "eslint *.js lib/*.js && prettier -l index.js lib/*.js || (echo need formatting ; exit 1)",
"format": "prettier --write index.js lib/*.js test.js"
Expand Down