Tests dockerization #198
Workflow file for this 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
name: "tests" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
- dev | |
jobs: | |
test: | |
name: 'Docker Tests' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build Docker Image | |
run: docker build -t hardhat-zkit-test-runner . | |
- name: Run Tests Inside Docker Container | |
run: docker run --rm hardhat-zkit-test-runner | |
- name: Cleanup Docker resources | |
run: | | |
docker rmi hardhat-zkit-test-runner --force | |
docker buildx prune -a -f | |
docker system prune -a -f --volumes |