File tree Expand file tree Collapse file tree 4 files changed +280
-14
lines changed Expand file tree Collapse file tree 4 files changed +280
-14
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,26 @@ workflows:
8
8
version : 2
9
9
pipeline :
10
10
jobs :
11
+ - install :
12
+ filters :
13
+ branches :
14
+ only : main
11
15
- run_tests :
12
16
filters :
13
17
branches :
14
18
only : main
19
+ requires :
20
+ - install
15
21
- cypress/run :
16
22
yarn : true
17
23
executor : cypress/base-14
18
- start : yarn start
19
- wait-on : ' http://localhost:3000 '
24
+ start : yarn serve
25
+ wait-on : ' http://localhost:5000 '
20
26
filters :
21
27
branches :
22
28
only : main
29
+ requires :
30
+ - install
23
31
- publish_github_page :
24
32
filters :
25
33
branches :
@@ -29,7 +37,7 @@ workflows:
29
37
- cypress/run
30
38
31
39
jobs :
32
- run_tests :
40
+ install :
33
41
working_directory : ~/saljuama.github.io
34
42
docker :
35
43
- image : circleci/node:14.15.1
44
52
paths :
45
53
- node_modules
46
54
key : v1-dependencies-{{ checksum "package.json" }}
55
+
56
+ run_tests :
57
+ working_directory : ~/saljuama.github.io
58
+ docker :
59
+ - image : circleci/node:14.15.1
60
+ steps :
61
+ - checkout
62
+ - restore_cache :
63
+ keys :
64
+ - v1-dependencies-{{ checksum "package.json" }}
65
+ - v1-dependencies-
47
66
- run : yarn test
48
67
49
68
publish_github_page :
Original file line number Diff line number Diff line change 1
1
{
2
- "baseUrl" : " http://localhost:3000 "
2
+ "baseUrl" : " http://localhost:5000 "
3
3
}
Original file line number Diff line number Diff line change 9
9
"clean" : " eslint \" src/**/*.js\" --fix" ,
10
10
"start" : " react-scripts start" ,
11
11
"build" : " react-scripts build" ,
12
- "predeploy" : " npm run build" ,
12
+ "serve" : " yarn build && serve -s build" ,
13
+ "predeploy" : " yarn build" ,
13
14
"deploy" : " gh-pages -b gh-pages -e ./docs -d build"
14
15
},
15
16
"dependencies" : {
33
34
"cypress" : " ^6.8.0" ,
34
35
"gh-pages" : " ^3.1.0" ,
35
36
"node-sass" : " 4.14.1" ,
36
- "react-scripts" : " 4.0.3"
37
+ "react-scripts" : " 4.0.3" ,
38
+ "serve" : " ^11.3.2"
37
39
},
38
40
"browserslist" : {
39
41
"production" : [
You can’t perform that action at this time.
0 commit comments