Skip to content

Commit

Permalink
ci: fix workflow
Browse files Browse the repository at this point in the history
openmldb cluster may pending on bootstrap, wait 1min
  • Loading branch information
aceforeverd committed Mar 25, 2024
1 parent 63e12d2 commit ed5bf5b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.18'

- name: OpenMLDB cluster
run: |
docker compose -f docker-compose.yml up -d
- name: verbose services
# ensure all services is up
run: |
sleep 60
docker compose --file docker-compose.yml ps -a
- name: init test database
run: |
docker compose -f docker-compose.yml exec openmldb-ns1 /opt/openmldb/bin/openmldb --zk_cluster=openmldb-zk:2181 --zk_root_path=/openmldb --role=sql_client --cmd 'CREATE DATABASE test_db'
Expand Down

0 comments on commit ed5bf5b

Please sign in to comment.