File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,10 @@ jobs:
48
48
submodules : false
49
49
50
50
- name : Build and start Docker Compose services
51
- run : bash ./setup_github.sh && docker compose -f docker-compose.yaml up --build -d && cd test && npm run test:docker
51
+ run : bash ./setup_github.sh && docker compose -f docker-compose.yaml up --build -d
52
52
53
- - name : Recursively show cwd
54
- run : |
55
- pwd
56
- ls -R
53
+ - name : Run tests
54
+ run : docker compose run test npx cypress run
57
55
58
56
- name : Tear down Docker Compose services
59
57
run : docker-compose down
Original file line number Diff line number Diff line change 3
3
source ./setup_local.sh
4
4
5
5
# Run Docker Compose
6
- docker-compose -f docker-compose.yaml up --build
6
+ docker-compose up --build
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " Cypress tests for the books application" ,
5
5
"scripts" : {
6
- "test" : " cypress run" ,
7
- "test:local" : " cypress run" ,
8
- "test:local:gui" : " cypress open" ,
9
- "test:docker" : " docker compose run test npm run test:local:gui" ,
10
- "test:docker:gui" : " docker compose run test npm run test"
6
+ "test" : " npx cypress run" ,
7
+ "test:gui" : " npx cypress open" ,
8
+ "test:docker" : " docker compose run test npx cypress run"
11
9
},
12
10
"devDependencies" : {
13
11
"cypress" : " ^13.6.1"
You can’t perform that action at this time.
0 commit comments