update tests

This commit is contained in:
Roy Crihfield 2024-04-24 19:29:12 +08:00
parent 4cabfc65ad
commit e1b3a68e3e

View File

@ -9,10 +9,6 @@ on:
- ci-test
workflow_call:
# Needed until we can incorporate docker startup into the executor container
env:
DOCKER_HOST: unix:///var/run/dind.sock
jobs:
integration-tests:
name: Run integration tests
@ -23,17 +19,8 @@ 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
- name: Configure Gitea access
env:
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
run: |
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"
- name: Build package
run: go build .
@ -42,7 +29,7 @@ jobs:
with:
repository: cerc-io/eth-testing
path: ./fixtures
ref: v0.3.1
ref: v0.4.0
# Run a sanity test against the fixture data
# Complete integration tests are TODO
- name: Run basic integration test
@ -90,12 +77,7 @@ jobs:
with:
repository: cerc-io/eth-testing
path: ./fixtures
ref: v0.3.1
- name: Configure Gitea access
env:
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
run: |
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf https://git.vdb.to/
ref: v0.4.0
- name: Build current version
working-directory: ./eth-statediff-service
run: go build -o ../service-current .
@ -109,10 +91,6 @@ jobs:
working-directory: ./eth-statediff-service-canonical
run: go build -o ../service-canonical .
- name: Run dockerd
run: |
dockerd -H $DOCKER_HOST --userland-proxy=false &
sleep 5
- name: Run DB container
working-directory: ./eth-statediff-service
run: docker compose -f test/compose.yml up --wait