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:
|
jobs:
|
||||||
hardhat-image-build:
|
# hardhat-image-build:
|
||||||
if: ${{ github.event.label.name == 'CI:Deploy'}}
|
# if: ${{ github.event.label.name == 'CI:Deploy'}}
|
||||||
name: Build Hardhat image and push it to DockerHub
|
# name: Build Hardhat image and push it to DockerHub
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Check out the repo
|
# - name: Check out the repo
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
# - name: Log in to Docker Hub
|
||||||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
|
# uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
|
||||||
with:
|
# with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN}}
|
# password: ${{ secrets.DOCKERHUB_TOKEN}}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
# - name: Build and push Docker image
|
||||||
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
|
# uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
|
||||||
with:
|
# with:
|
||||||
context: .
|
# context: .
|
||||||
file: ./Dockerfile
|
# file: ./Dockerfile
|
||||||
push: true
|
# push: true
|
||||||
tags: "anglyuboslav/hardhat:${{ github.run_number }}"
|
# tags: "anglyuboslav/hardhat:${{ github.run_number }}"
|
||||||
hardhat-env:
|
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
|
runs-on: ubuntu-latest
|
||||||
services:
|
|
||||||
go-eth:
|
|
||||||
image: anglyuboslav/go-eth-lab:12
|
|
||||||
hardhat:
|
|
||||||
image: anglyuboslav/hardhat:1.0.0
|
|
||||||
ports:
|
|
||||||
- 8545:8545
|
|
||||||
steps:
|
steps:
|
||||||
- name: Run hardhat tests
|
- uses: actions/checkout@v3
|
||||||
run: docker exec hardhat bash -c "npx hardhat test"
|
- 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:
|
geth:
|
||||||
image: anglyuboslav/go-eth-lab
|
image: anglyuboslav/go-eth-lab
|
||||||
command:
|
command:
|
||||||
- --dev
|
- --dev
|
||||||
|
hardhat:
|
||||||
|
image: anglyuboslav/hardhat:1.0.0
|
||||||
|
ports:
|
||||||
|
- 8545:8545
|
||||||
|
|
||||||
Loading…
Reference in a new issue