-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: simplify interop test implementation (#2558)
Aligns interop test implementation with libp2p/test-plans#365
- Loading branch information
1 parent
9e5835e
commit bc6556f
Showing
17 changed files
with
359 additions
and
1,063 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.