Skip to content

Commit fd01a7c

Browse files
committed
add before all example to circleci file
1 parent 6ea900d commit fd01a7c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.circleci/config.yml

+26
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,31 @@ workflows:
9393
command: npx nyc report --check-coverage true --lines 100
9494
working_directory: examples/before-each-visit
9595

96+
- cypress/run:
97+
name: example-before-all-visit
98+
requires:
99+
- cypress/install
100+
# install dependencies in the root folder
101+
post-install:
102+
- run: npm ci
103+
# there are no jobs to follow this one
104+
# so no need to save the workspace files (saves time)
105+
no-workspace: true
106+
working_directory: examples/before-all-visit
107+
# store screenshots and videos
108+
store_artifacts: true
109+
post-steps:
110+
- run: cat examples/before-all-visit/.nyc_output/out.json
111+
# store the created coverage report folder
112+
# you can click on it in the CircleCI UI
113+
# to see live static HTML site
114+
- store_artifacts:
115+
path: examples/before-all-visit/coverage
116+
# make sure the examples captures 100% of code
117+
- run:
118+
command: npx nyc report --check-coverage true --lines 100
119+
working_directory: examples/before-all-visit
120+
96121
- publish:
97122
filters:
98123
branches:
@@ -102,3 +127,4 @@ workflows:
102127
- frontend coverage
103128
- backend coverage
104129
- example-before-each-visit
130+
- example-before-all-visit

0 commit comments

Comments
 (0)