Skip to content

Commit 671dd0e

Browse files
committed
wait for port open using wait-for-port
1 parent c7d4cc1 commit 671dd0e

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,16 @@ jobs:
2424
cache-dependency-path: |
2525
go.sum
2626
27-
- name: Start Todo API
28-
uses: JarvusInnovations/background-action@v1
29-
with:
30-
run: go run test_api/todo/server.go
31-
wait-on: |
32-
http://localhost:8080
33-
tail: true
27+
- name: Start Todo Server
28+
run: |
29+
go run test_api/todo/server.go &
30+
go run main.go &
3431
35-
- name: Start Cache API
36-
uses: JarvusInnovations/background-action@v1
37-
with:
38-
run: go run main.go
39-
wait-on: |
40-
http://localhost:9090
41-
tail: true
32+
- name: Wait for Todo Server
33+
run: |
34+
go install github.com/bitnami/wait-for-port
35+
wait-for-port 8080
36+
wait-for-port 9090
4237
4338
- name: Run Tests
4439
run: |

0 commit comments

Comments
 (0)