File tree Expand file tree Collapse file tree 1 file changed +1
-31
lines changed Expand file tree Collapse file tree 1 file changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -3,26 +3,7 @@ name: Run Tests
33on : [pull_request]
44
55jobs :
6- cache_node_modules :
7- runs-on : ubuntu-latest
8-
9- steps :
10- - name : Checkout repository code
11- uses : actions/checkout@v2
12-
13- - name : Cache node_modules
14- id : cache-node-modules
15- uses : actions/cache@v2
16- with :
17- path : node_modules
18- key : node_modules-${{ hashFiles('package-lock.json') }}
19-
20- - name : Install dependencies
21- if : steps.cache-node-modules.outputs.cache-hit != 'true'
22- run : npm install
23-
246 test_lints :
25- needs : cache_node_modules
267 runs-on : ubuntu-latest
278
289 steps :
4728 run : npm run test:js
4829
4930 test_cypress :
50- needs : cache_node_modules
5131 runs-on : ubuntu-latest
5232
5333 steps :
5737 - name : Run backend container
5838 run : docker-compose -f "docker-compose.test.yml" up -d --build
5939
60- - name : Load node_modules
61- id : cache-node-modules
62- uses : actions/cache@v2
63- with :
64- path : node_modules
65- key : node_modules-${{ hashFiles('package-lock.json') }}
66-
67- - name : Install node_modules
68- if : steps.cache-node-modules.outputs.cache-hit != 'true'
69- run : npm install
70-
7140 - name : Create config.json
7241 run : echo $TEST_CONFIG_JSON > src/config.json
7342 env :
7746 uses : cypress-io/github-action@v2
7847 with :
7948 start : npm start
49+ wait-on : ' http://localhost:3000'
You can’t perform that action at this time.
0 commit comments