run docker in docker
Some checks reported warnings
Test / Run unit tests (pull_request) Has been cancelled
Test / Run integration tests (pull_request) Has been cancelled

This commit is contained in:
Roy Crihfield 2023-07-14 01:25:47 +08:00
parent ad8583dddd
commit 05a27e8fa9

View File

@ -8,6 +8,10 @@ on:
- main
- ci-test
# Needed until we can incorporate docker startup into the executor container
env:
DOCKER_HOST: unix:///var/run/dind.sock
jobs:
unit-tests:
name: "Run unit tests"
@ -18,6 +22,10 @@ jobs:
with:
go-version-file: 'go.mod'
check-latest: true
- name: "Run dockerd"
run: |
dockerd -H $DOCKER_HOST --userland-proxy=false &
sleep 5
- name: "Run DB container"
run: |
docker compose -f test/compose.yml up --wait
@ -27,9 +35,6 @@ jobs:
run: |
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf https://git.vdb.to/
- name: "Run tests"
env:
DATABASE_HOSTNAME: gitea.local
DATABASE_PORT: 8077
run: go test -v ./...
integration-tests:
@ -45,8 +50,11 @@ jobs:
repository: cerc-io/plugeth
ref: statediff-wip
path: ./plugeth
- name: "Run dockerd"
run: dockerd -H $DOCKER_HOST --userland-proxy=false &
# These images need access tokens configured
- name: "Build docker image"
if: false
env:
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
run: |