Skip to content

Tests dockerization #203

Tests dockerization

Tests dockerization #203

Workflow file for this run

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