diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e862e5a..5579c8e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index 5f3c655..0500c81 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/ci-frontend.sh b/scripts/ci-frontend.sh new file mode 100755 index 0000000..9419336 --- /dev/null +++ b/scripts/ci-frontend.sh @@ -0,0 +1 @@ +find eg-tareas-angular/src -name '*.ts' -exec sed -i 's/localhost/host.docker.internal/g' {} + \ No newline at end of file