From e1b3a68e3eeddc77e1edfb4dcf275045793e8b50 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 24 Apr 2024 19:29:12 +0800 Subject: [PATCH] update tests --- .gitea/workflows/tests.yml | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index db3f398..08ab7c0 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -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