Skip to content

Commit

Permalink
test: try to fix puppeteer e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed Oct 2, 2024
1 parent cba8da3 commit 6ea3402
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"build": "turbo run build && node ./scripts/typescript_fixes.mjs",
"ci:build": "turbo run build --cache-dir=\".turbo\" && node ./scripts/typescript_fixes.mjs",
"test": "vitest run --silent",
"test:e2e": "node test/e2e/run.mjs",
"test:e2e": "node test/e2e/run.mjs puppeteer-default",
"test:full": "cross-env CRAWLEE_DIFFICULT_TESTS=1 vitest run --silent",
"coverage": "vitest --coverage",
"publish:next": "lerna publish from-package --contents dist --dist-tag next --force-publish",
Expand Down
16 changes: 8 additions & 8 deletions test/e2e/puppeteer-default/actor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
FROM node:20 AS builder
FROM apify/actor-node-puppeteer-chrome:20-beta AS builder

COPY /packages ./packages
COPY /package*.json ./
COPY --chown=myuser /packages ./packages
COPY --chown=myuser /package*.json ./
RUN npm --quiet set progress=false \
&& npm install --only=prod --no-optional --no-audit \
&& npm update

FROM apify/actor-node-puppeteer-chrome:20-beta

RUN rm -r node_modules
COPY --from=builder /node_modules ./node_modules
COPY --from=builder /packages ./packages
COPY --from=builder /package*.json ./
COPY /.actor ./.actor
COPY /main.js ./
COPY --chown=myuser --from=builder /node_modules ./node_modules
COPY --chown=myuser --from=builder /packages ./packages
COPY --chown=myuser --from=builder /package*.json ./
COPY --chown=myuser /.actor ./.actor
COPY --chown=myuser /main.js ./

RUN echo "Installed NPM packages:" \
&& (npm list --only=prod --no-optional --all || true) \
Expand Down

0 comments on commit 6ea3402

Please sign in to comment.