Commit 3798a1d 1 parent cbc85a9 commit 3798a1d Copy full SHA for 3798a1d
File tree 2 files changed +37
-2
lines changed
2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 14
14
15
15
jest :
16
16
runs-on : ubuntu-latest
17
- permissions :
18
- contents : read
19
17
20
18
steps :
21
19
- name : Checkout the repo
62
60
fi
63
61
working-directory : ${{ env.node_app_root }}
64
62
if : always()
63
+
64
+ cypress :
65
+ runs-on : ubuntu-latest
66
+
67
+ services :
68
+ mongo :
69
+ image : mongo
70
+
71
+ steps :
72
+ - name : Checkout the repo
73
+ uses : actions/checkout@v4
74
+
75
+ - name : Cypress run
76
+ uses : cypress-io/github-action@v6
77
+ with :
78
+ config-file : cypress.config.ci.js
79
+ working-directory : ${{ env.node_app_root }}
80
+ env :
81
+ MONGODB_URI : mongodb://mongo/node_mongo_book_reviews_test
82
+ JWT_SECRET : thisIsANotSoSecretTestSecretinDocker
Original file line number Diff line number Diff line change
1
+ const { defineConfig } = require ( 'cypress' )
2
+
3
+ module . exports = defineConfig ( {
4
+ registerUrl : '/api/register' ,
5
+ loginUrl : '/api/login' ,
6
+ bookUrl : '/api/book' ,
7
+ userUrl : '/api/user' ,
8
+ reviewUrl : '/api/review' ,
9
+ e2e : {
10
+ // We've imported your old cypress plugins here.
11
+ // You may want to clean this up later by importing these.
12
+ setupNodeEvents ( on , config ) {
13
+ return require ( './cypress/plugins/index.js' ) ( on , config )
14
+ } ,
15
+ baseUrl : 'http://localhost:3000' ,
16
+ } ,
17
+ } )
You can’t perform that action at this time.
0 commit comments