-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: browser test in canary flow (#2102)
Fixing browser test in canary flow by installing chromium and copying js artifact exported by aztec.js Fixes #2086
- Loading branch information
Showing
4 changed files
with
31 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
FROM node:18-alpine | ||
RUN apk update && apk add --no-cache jq bash | ||
RUN apk update && apk add --no-cache udev ttf-freefont chromium curl jq bash | ||
ENV CHROME_BIN="/usr/bin/chromium-browser" PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" | ||
|
||
ARG COMMIT_TAG="" | ||
ARG COMMIT_TAG="v0.1.0-alpha62" | ||
|
||
#Build canary | ||
WORKDIR /usr/src/ | ||
COPY ./canary . | ||
RUN ./scripts/update_packages.sh $COMMIT_TAG | ||
RUN yarn && yarn build | ||
|
||
RUN cp node_modules/@aztec/aztec.js/dest/main.js src/web/ | ||
RUN cp node_modules/@aztec/circuits.js/resources/aztec3-circuits.wasm src/web/ | ||
|
||
ENTRYPOINT ["yarn", "test"] |
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,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<script type="module"> | ||
import * as AztecJs from './main.js'; | ||
|
||
window.AztecJs = AztecJs; | ||
</script> | ||
</body> | ||
</html> |