Skip to content

Commit 4f19047

Browse files
authored
Start sql server before building so it has time to come up. Yes this is a race condition but it's easier to implicitly wait than to add a health check. (#14)
1 parent 2c4c475 commit 4f19047

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/capabilities.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
with:
1818
token: ${{ secrets.RELENG_GITHUB_TOKEN }}
1919

20+
- name: Run Docker Compose as a Daemon (to start sql server)
21+
run: docker-compose -f ./docker-compose.yml up --detach
22+
2023
- name: Setup Go
2124
uses: actions/setup-go@v5
2225
with:
@@ -25,9 +28,6 @@ jobs:
2528
- name: Build
2629
run: go build -o connector ./cmd/baton-sql-server
2730

28-
- name: Run Docker Compose as a Daemon (to start sql server)
29-
run: docker-compose -f ./docker-compose.yml up --detach
30-
3131
- name: Run and save output
3232
run: ./connector capabilities > baton_capabilities.json
3333

0 commit comments

Comments
 (0)