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