-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (27 loc) · 936 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 and Run Tests on Node 18
run: docker build --build-arg NODE_VERSION=18.0.0 -t hardhat-zkit-test-runner-node18 --progress=plain --no-cache .
- name: Build Docker Image and Run Tests on Node 20
run: docker build --build-arg NODE_VERSION=20.0.0 -t hardhat-zkit-test-runner-node20 --progress=plain --no-cache .
- name: Cleanup Docker resources
run: |
docker rmi hardhat-zkit-test-runner-node18 hardhat-zkit-test-runner-node20 --force
docker buildx prune -a -f
docker system prune -a -f --volumes