Skip to content

Commit 3448616

Browse files
committed
fixing scripts
1 parent 063e08e commit 3448616

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,10 @@ jobs:
4848
submodules: false
4949

5050
- 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
5252

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
5755

5856
- name: Tear down Docker Compose services
5957
run: docker-compose down

build_local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
source ./setup_local.sh
44

55
# Run Docker Compose
6-
docker-compose -f docker-compose.yaml up --build
6+
docker-compose up --build

test/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
"version": "1.0.0",
44
"description": "Cypress tests for the books application",
55
"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"
119
},
1210
"devDependencies": {
1311
"cypress": "^13.6.1"

0 commit comments

Comments
 (0)