Skip to content

Commit

Permalink
moved test-docker command to script
Browse files Browse the repository at this point in the history
  • Loading branch information
mllwchrry committed Oct 31, 2024
1 parent 8f45af8 commit 7d58e3f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Build Docker Image and Run Tests
run: docker build --build-arg NODE_VERSION=${{ matrix.node }} -t hardhat-zkit-test-runner-node${{ matrix.node }} --progress=plain --no-cache .
run: docker build --build-arg NODE_VERSION=${{ matrix.node }} -t hardhat-zkit-node${{ matrix.node }} --progress=plain --no-cache .

- name: Cleanup Docker resources
run: |
docker rmi hardhat-zkit-test-runner-node${{ matrix.node }} --force
docker rmi hardhat-zkit-node${{ matrix.node }} --force
docker buildx prune -a -f
docker system prune -a -f --volumes
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"build": "tsc --build .",
"prepare-tests": "npm run compile --workspaces",
"test": "npm run test-docker",
"test-docker": "docker build -t hardhat-zkit --progress=plain --no-cache . && docker rmi hardhat-zkit --force",
"test-docker": "bash scripts/test-docker.sh",
"test-local": "mocha --recursive 'test/**/*.ts' --exit",
"coverage": "npm run coverage-docker",
"coverage-docker": "bash scripts/docker-coverage.sh",
"coverage-docker": "bash scripts/coverage-docker.sh",
"coverage-local": "nyc mocha --recursive 'test/**/*.ts' --exit",
"clean-tests": "npm run clean --workspaces",
"lint-fix": "prettier --write \"./**/*.ts\" && eslint \"{src,test}/**/*.{js,ts}\" --cache --fix",
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions scripts/test-docker.sh
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 --no-cache .
docker rmi hardhat-zkit --force

0 comments on commit 7d58e3f

Please sign in to comment.