Skip to content

Commit 19701cd

Browse files
committed
add example to circleci
1 parent 59fa22d commit 19701cd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.circleci/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,25 @@ workflows:
6868
# and look at the server index file - should be fully covered
6969
- run: npx nyc report --check-coverage true --lines 100 --include test-backend/index.js
7070

71+
- cypress/run:
72+
name: example-before-each-visit
73+
requires:
74+
- cypress/install
75+
# there are no jobs to follow this one
76+
# so no need to save the workspace files (saves time)
77+
no-workspace: true
78+
working_directory: examples/before-each-visit
79+
post-steps:
80+
# store the created coverage report folder
81+
# you can click on it in the CircleCI UI
82+
# to see live static HTML site
83+
- store_artifacts:
84+
path: examples/before-each-visit/coverage
85+
# make sure the examples captures 100% of code
86+
- run:
87+
command: npx nyc report --check-coverage true --lines 100
88+
working_directory: examples/before-each-visit
89+
7190
- publish:
7291
filters:
7392
branches:
@@ -76,3 +95,4 @@ workflows:
7695
requires:
7796
- frontend coverage
7897
- backend coverage
98+
- example-before-each-visit

0 commit comments

Comments
 (0)