Skip to content

Commit

Permalink
fix: running e2e tests on local docker environment
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Jul 17, 2023
1 parent 78ab51b commit a6562bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-apps-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
run: |
pnpm --filter=web build
env:
NEXTAUTH_URL: https://localhost:3000
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: secret-string-only-for-ci
APP_CACHE_DSN: ''
# Speed up build: they are linted in a previous step
Expand Down
2 changes: 1 addition & 1 deletion apps/web/next-sitemap.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.APP_URL || 'https://localhost:3000',
siteUrl: process.env.APP_URL || 'http://localhost:3000',
generateRobotsTxt: true,
}
2 changes: 1 addition & 1 deletion apps/web/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const config: PlaywrightTestConfig = {
],

use: {
baseURL: 'http://localhost:3000',
baseURL: process.env.APP_URL || 'http://localhost:3000',
headless: true,
// Retry a test if it's failing with enabled tracing. This allows you to analyse the DOM, console logs, network traffic etc.
// More information: https://playwright.dev/docs/trace-viewer
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ services:
- traefik.http.routers.${APP_NAME}_web.tls=true
- traefik.http.routers.${APP_NAME}_web.service=${APP_NAME}_web
- traefik.http.services.${APP_NAME}_web.loadbalancer.server.port=3000
expose:
- 3000

docs:
image: wayofdev/node:lts-alpine-latest
Expand Down

0 comments on commit a6562bb

Please sign in to comment.