This commit is contained in:
Roy Crihfield 2023-09-09 05:54:49 +08:00
parent 5eeeecf667
commit 99ae049c6f
2 changed files with 3 additions and 4 deletions

View File

@ -8,14 +8,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-go@v3 - uses: actions/setup-go@v4
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
check-latest: true check-latest: true
- name: "Run DB container" - name: "Run DB container"
working-directory: ./test working-directory: ./test
run: | run: docker compose up --wait --quiet-pull
docker compose up -d --quiet-pull
- name: "Build and run tests" - name: "Build and run tests"
run: | run: |
until [[ "$(docker inspect test-ipld-eth-db | jq -r '.[0].State.Status')" = 'running' ]] until [[ "$(docker inspect test-ipld-eth-db | jq -r '.[0].State.Status')" = 'running' ]]

View File

@ -1,4 +1,4 @@
# Containers to run backing DB for unit testing # Containers to run backing DB for testing
services: services:
migrations: migrations: