Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add example to circleci
  • Loading branch information
bahmutov committed Mar 9, 2020
commit 19701cdefbc337c308965d2b6c2418bd274b39d1
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,25 @@ workflows:
# and look at the server index file - should be fully covered
- run: npx nyc report --check-coverage true --lines 100 --include test-backend/index.js

- cypress/run:
name: example-before-each-visit
requires:
- cypress/install
# there are no jobs to follow this one
# so no need to save the workspace files (saves time)
no-workspace: true
working_directory: examples/before-each-visit
post-steps:
# store the created coverage report folder
# you can click on it in the CircleCI UI
# to see live static HTML site
- store_artifacts:
path: examples/before-each-visit/coverage
# make sure the examples captures 100% of code
- run:
command: npx nyc report --check-coverage true --lines 100
working_directory: examples/before-each-visit

- publish:
filters:
branches:
Expand All @@ -76,3 +95,4 @@ workflows:
requires:
- frontend coverage
- backend coverage
- example-before-each-visit