Skip to content

Commit a37d147

Browse files
committed
Fixing build location
1 parent 18699ff commit a37d147

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ env:
3737
jobs:
3838
test:
3939
runs-on: ubuntu-latest
40-
40+
container:
41+
image: node:18
4142
steps:
4243
- uses: KengoTODA/actions-setup-docker-compose@v1
4344
with:
@@ -52,8 +53,7 @@ jobs:
5253
run: |
5354
bash ./setup_github.sh &&
5455
docker-compose --profile baseServices up --build --no-deps -d &&
55-
docker compose run test ls ./ &&
56-
docker compose run test npx cypress run --config-file ./cypress.config.js
56+
cd test && npm install && npx cypress run
5757
5858
# - name: check dns is working
5959
# run: cat /etc/hosts; netstat -tulpn # Use -tulpn to show TCP/UDP listeners

docker-compose.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
- PUBLIC_URL=${FRONTEND_PUBLIC_URL}
1111
- WDS_SOCKET_PORT=${WDS_SOCKET_PORT}
1212
volumes:
13-
- ./repo_refs/react1-app:/app
13+
- ./repo_refs/react1-app:.
1414
api:
1515
profiles: ["baseServices", "full"]
1616
build: ${API_BUILD_CONTEXT}
@@ -25,7 +25,7 @@ services:
2525
- DATABASE_USERNAME=${DATABASE_USERNAME}
2626
- RAILS_ENV=${RAILS_ENV}
2727
volumes:
28-
- ./repo_refs/rails-app:/app
28+
- ./repo_refs/rails-app:.
2929
healthcheck:
3030
test: ["CMD", "curl", "-f", "http://localhost:3000/api/ping"]
3131
interval: 10s
@@ -63,7 +63,7 @@ services:
6363
networks:
6464
- app-network
6565
volumes:
66-
- ./repo_refs/react2-app:/app
66+
- ./repo_refs/react2-app:.
6767
nginx:
6868
profiles: ["baseServices", "full"]
6969
image: nginx:alpine
@@ -89,7 +89,7 @@ services:
8989
networks:
9090
- app-network
9191
volumes:
92-
- ./test:/app
92+
- ./test:.
9393
environment:
9494
- CYPRESS_BASE_URL=http://nginx:80
9595
depends_on:

0 commit comments

Comments
 (0)