-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add tests dockerization * fixed compile with library test * made Dockerfile dynamic * removed dockerized coverage * removed alpine, dockerized coverage * moved test-docker command to script * try to improve docker * update dockerignore --------- Co-authored-by: Artem Chystiakov <[email protected]>
- Loading branch information
Showing
9 changed files
with
95 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
node_modules | ||
.DS_Store | ||
.idea | ||
.vscode | ||
.npm | ||
.eslintcache | ||
Dockerfile | ||
.git | ||
.gitignore | ||
.env | ||
|
||
# Compilation output | ||
/build-test/ | ||
/dist | ||
|
||
# Coverage | ||
.nyc_output | ||
coverage.json | ||
coverage | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# node-waf configuration | ||
.lock-wscript |
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,15 @@ | ||
ARG NODE_VERSION=20 | ||
|
||
FROM node:${NODE_VERSION} AS base | ||
WORKDIR /hardhat-zkit | ||
|
||
FROM base AS install | ||
RUN mkdir -p /temp/dev | ||
COPY package.json package-lock.json /temp/dev/ | ||
RUN cd /temp/dev && npm ci | ||
|
||
FROM base AS dev | ||
COPY --from=install /temp/dev/node_modules node_modules | ||
COPY . . | ||
|
||
ENTRYPOINT ["npm", "run"] |
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,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker build -t hardhat-zkit --progress=plain . | ||
docker run --rm -v $(pwd)/coverage:/hardhat-zkit/coverage hardhat-zkit coverage-local |
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,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker build -t hardhat-zkit --progress=plain . | ||
docker run --rm hardhat-zkit test-local |
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