diff --git a/.github/workflows/post-deploy.yml b/.github/workflows/post-deploy.yml index ff3069209..b89a87e3b 100644 --- a/.github/workflows/post-deploy.yml +++ b/.github/workflows/post-deploy.yml @@ -9,9 +9,8 @@ jobs: test: timeout-minutes: 60 runs-on: ubuntu-latest - #if: github.event.deployment_status.state == 'success' steps: - uses: actions/checkout@v4 - name: Build Docker to run tests run: | - docker build --platform linux/amd64 --tag 'playwright' . -f ./e2e/Dockerfile --progress=plain --target test + docker build --platform linux/amd64 --tag 'playwright' . -f ./e2e/Dockerfile --target test diff --git a/e2e/Dockerfile b/e2e/Dockerfile index a45099195..1fb957163 100644 --- a/e2e/Dockerfile +++ b/e2e/Dockerfile @@ -16,8 +16,8 @@ EXPOSE 9090 EXPOSE 9191 RUN pnpm build --filter=@atj/spotlight --filter=@atj/design WORKDIR ./e2e -RUN serve ../apps/spotlight/dist -p 9090 & sleep 5; pnpm playwright test; -RUN serve ../packages/design/storybook-static -p 9191 & sleep 5; pnpm --filter=end-to-end-tests test:storybook --url http://localhost:9191 --config-dir ../packages/design/.storybook/ --browsers firefox chromium +RUN serve ../apps/spotlight/dist -p 9090 -L & sleep 5; pnpm playwright test; +RUN serve ../packages/design/storybook-static -p 9191 -L & sleep 5; pnpm --filter=end-to-end-tests test:storybook --url http://localhost:9191 --config-dir ../packages/design/.storybook/ --browsers firefox chromium FROM base as serve ENV E2E_ENDPOINT=http://localhost:4321