-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3994b6a
commit 6a335f9
Showing
18 changed files
with
1,064 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dist | ||
node-image.json | ||
chromium-image.json | ||
firefox-image.json | ||
webkit-image.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
# Copied since we won't have the repo to use if expanding from cache. | ||
|
||
# Workaround: https://github.com/docker/cli/issues/996 | ||
ARG BASE_IMAGE=node-js-libp2p-head | ||
FROM ${BASE_IMAGE} as js-libp2p-base | ||
|
||
FROM mcr.microsoft.com/playwright | ||
|
||
COPY --from=js-libp2p-base /app/ /app/ | ||
|
||
# We install browsers here instead of the cached version so that we use the latest browsers at run time. | ||
# Ideally this would also be pinned, but playwright controls this, so there isn't much we can do about it. | ||
# By installing here, we avoid installing it at test time. | ||
RUN npx playwright install-deps | ||
RUN npx playwright install | ||
|
||
COPY --from=node-js-libp2p-head /app/ /app/ | ||
WORKDIR /app/interop | ||
# Options: chromium, firefox, webkit | ||
ARG BROWSER=chromium | ||
ENV BROWSER=${BROWSER} | ||
|
||
WORKDIR /app/interop | ||
ENV BROWSER=$BROWSER | ||
# disable colored output and CLI animation from test runners | ||
ENV CI true | ||
|
||
ENTRYPOINT npm test -- -t browser -- --browser $BROWSER | ||
# manually specify runner until https://github.com/hugomrdias/playwright-test/issues/572 is resolved | ||
ENTRYPOINT npm run test:interop:multidim -- --build false --types false -t browser -- --browser $BROWSER |
Oops, something went wrong.