mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
commit
d7be67f3f4
2 changed files with 45 additions and 31 deletions
69
.github/workflows/build-hardhat.yaml
vendored
69
.github/workflows/build-hardhat.yaml
vendored
|
|
@ -9,40 +9,49 @@ on:
|
|||
|
||||
|
||||
jobs:
|
||||
hardhat-image-build:
|
||||
if: ${{ github.event.label.name == 'CI:Deploy'}}
|
||||
name: Build Hardhat image and push it to DockerHub
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v4
|
||||
# hardhat-image-build:
|
||||
# if: ${{ github.event.label.name == 'CI:Deploy'}}
|
||||
# name: Build Hardhat image and push it to DockerHub
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Check out the repo
|
||||
# uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN}}
|
||||
# - name: Log in to Docker Hub
|
||||
# uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
|
||||
# with:
|
||||
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
# password: ${{ secrets.DOCKERHUB_TOKEN}}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: "anglyuboslav/hardhat:${{ github.run_number }}"
|
||||
# - name: Build and push Docker image
|
||||
# uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
|
||||
# with:
|
||||
# context: .
|
||||
# file: ./Dockerfile
|
||||
# push: true
|
||||
# tags: "anglyuboslav/hardhat:${{ github.run_number }}"
|
||||
hardhat-env:
|
||||
name: Build hardhat devnet
|
||||
# name: Build hardhat devnet
|
||||
# runs-on: ubuntu-latest
|
||||
# services:
|
||||
# go-eth:
|
||||
# image: anglyuboslav/go-eth-lab:12
|
||||
# hardhat:
|
||||
# image: anglyuboslav/hardhat:1.0.0
|
||||
# ports:
|
||||
# - 8545:8545
|
||||
# steps:
|
||||
# - name: Run hardhat tests
|
||||
# run: docker exec hardhat bash -c "npx hardhat test"
|
||||
name: "Integration testing"
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
go-eth:
|
||||
image: anglyuboslav/go-eth-lab:12
|
||||
hardhat:
|
||||
image: anglyuboslav/hardhat:1.0.0
|
||||
ports:
|
||||
- 8545:8545
|
||||
steps:
|
||||
- name: Run hardhat tests
|
||||
run: docker exec hardhat bash -c "npx hardhat test"
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
- name: "Set up environment"
|
||||
run: docker compose -f docker-compose.yml up -d
|
||||
# - name: "Wait for docker to finish building"
|
||||
# run: sleep 30
|
||||
- name: "Test server"
|
||||
run: docker exec go-ethereum-lab-hardhat-1 npx hardhat test
|
||||
|
||||
|
||||
|
|
@ -3,4 +3,9 @@ services:
|
|||
geth:
|
||||
image: anglyuboslav/go-eth-lab
|
||||
command:
|
||||
- --dev
|
||||
- --dev
|
||||
hardhat:
|
||||
image: anglyuboslav/hardhat:1.0.0
|
||||
ports:
|
||||
- 8545:8545
|
||||
|
||||
Loading…
Reference in a new issue