From b0612956ed93198c72b4f25f865f917c621b0113 Mon Sep 17 00:00:00 2001 From: HashMapsData2Value <83883690+HashMapsData2Value@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:14:12 +0100 Subject: [PATCH] feat: adds wait-on --- .github/workflows/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6373b749..5a5a944c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,6 +25,9 @@ jobs: - name: Start Docker Compose run: docker compose up -d + - name: Wait for the server to start + run: npx wait-on localhost:8080 + - name: Install dependencies run: go get . @@ -55,7 +58,7 @@ jobs: - name: Test with the Go CLI run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./... - - name: check test coverage + - name: Check test coverage uses: vladopajic/go-test-coverage@v2 with: config: ./.testcoverage.yaml