Refactor to use plugeth-statediff (#1)
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
name: PR actions
|
||||
on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
uses: ./.github/workflows/test.yml
|
||||
@@ -1,6 +1,10 @@
|
||||
name: Run tests
|
||||
on:
|
||||
workflow_call:
|
||||
- pull_request
|
||||
|
||||
env:
|
||||
# Needed until we can incorporate docker startup into the executor container
|
||||
DOCKER_HOST: unix:///var/run/dind.sock
|
||||
|
||||
jobs:
|
||||
unit-tests:
|
||||
@@ -12,15 +16,23 @@ jobs:
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
check-latest: true
|
||||
- name: "Run DB container"
|
||||
- name: Run dockerd
|
||||
run: |
|
||||
dockerd -H $DOCKER_HOST --userland-proxy=false &
|
||||
sleep 5
|
||||
- name: Run DB container
|
||||
working-directory: ./test
|
||||
run: docker compose up --wait --quiet-pull
|
||||
- name: Set Gitea access token
|
||||
env:
|
||||
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
|
||||
run: |
|
||||
docker compose up -d --quiet-pull
|
||||
- name: "Build and run tests"
|
||||
run: |
|
||||
until [[ "$(docker inspect test-ipld-eth-db | jq -r '.[0].State.Status')" = 'running' ]]
|
||||
do sleep 1; done &
|
||||
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf https://git.vdb.to/
|
||||
|
||||
- name: Build and run tests
|
||||
run: |
|
||||
until [[ "$(docker inspect -f '{{.State.Status}}' test-ipld-eth-db)" = 'running' ]]
|
||||
do sleep 1; done &
|
||||
go build ./...
|
||||
wait $!
|
||||
go test -v ./...
|
||||
go test -p 1 -v ./...
|
||||
|
||||
Reference in New Issue
Block a user