Skip to content

Commit

Permalink
Test using host.docker.internal
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Nov 22, 2024
1 parent 2004783 commit 94cd842
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
with:
timeout_minutes: 5
max_attempts: 3
command: npm i && npm run e2e
command: npm i && npm run e2e:ci


3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"stop:frontend": "./scripts/stop-frontend.sh",
"stop:all": "npm run stop:frontend && npm run stop:backend",
"cy:run": "cypress run --browser chrome --spec ./cypress/e2e/2-tareaCicloFeliz.cy.js",
"e2e": "npm run start:backend && start-server-and-test start:frontend http://localhost:4200 cy:run"
"e2e": "npm run start:backend && start-server-and-test start:frontend http://localhost:4200 cy:run",
"e2e:ci": "./scripts/ci-frontend && npm run e2e"
},
"devDependencies": {
"@eslint/js": "^9.15.0",
Expand Down
1 change: 1 addition & 0 deletions scripts/ci-frontend.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
find eg-tareas-angular/src -name '*.ts' -exec sed -i 's/localhost/host.docker.internal/g' {} +

0 comments on commit 94cd842

Please sign in to comment.