-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dep/remove-outdated-multihashes
- Loading branch information
Showing
21 changed files
with
529 additions
and
1,244 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 was deleted.
Oops, something went wrong.
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,14 +1,25 @@ | ||
# 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=node-js-libp2p-head /app/ /app/ | ||
WORKDIR /app/interop | ||
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 | ||
|
||
# Options: chromium, firefox, webkit | ||
ARG BROWSER=chromium | ||
ENV BROWSER=$BROWSER | ||
# disable colored output and CLI animation from test runners | ||
ENV CI true | ||
ENV BROWSER=${BROWSER} | ||
|
||
WORKDIR /app/interop | ||
|
||
# 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 | ||
ENTRYPOINT npm test -- -t browser -- --browser $BROWSER |
Oops, something went wrong.