Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 0738379

Browse files
authored
Merge pull request serverless#465 from miketheman/miketheman/ci-report
test: store test result artifacts
2 parents c583802 + 830aee4 commit 0738379

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

circle.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ jobs:
3434
# install deps
3535
- run: npm i
3636
# lint:
37-
- run: npm run lint
37+
- run: npm run ci:lint
3838
# test!
3939
- run: |
4040
export PATH="$HOME/.poetry/bin:$PATH"
4141
export LC_ALL=C.UTF-8
4242
export LANG=C.UTF-8
4343
npm run test
44+
- store_test_results:
45+
path: ~/reports
46+
- store_artifacts:
47+
path: ~/reports

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"main": "index.js",
3939
"bin": {},
4040
"scripts": {
41+
"ci:lint": "eslint *.js lib/*.js --format junit --output-file ~/reports/eslint.xml && prettier -c index.js lib/*.js",
4142
"test": "node test.js",
4243
"lint": "eslint *.js lib/*.js && prettier -l index.js lib/*.js || (echo need formatting ; exit 1)",
4344
"format": "prettier --write index.js lib/*.js test.js"

0 commit comments

Comments
 (0)