Tests dockerization #203
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: 'Node.js v${{ matrix.node }}' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 18 | |
- 20 | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build Docker Image and Run Tests | |
run: docker build --build-arg NODE_VERSION=${{ matrix.node }}.0.0 -t hardhat-zkit-test-runner-node${{ matrix.node }} --progress=plain --no-cache . | |
- name: Cleanup Docker resources | |
run: | | |
docker rmi hardhat-zkit-test-runner-node${{ matrix.node }} --force | |
docker buildx prune -a -f | |
docker system prune -a -f --volumes |