File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 8282 --health-interval=10s
8383 --health-timeout=5s
8484 --health-retries=3
85-
85+ cockroachdb :
86+ image : cockroachdb/cockroach:latest-v25.3
87+ ports :
88+ - 26257:26257
89+ - 8080:8080
90+ env :
91+ COCKROACHDB_USER : gis
92+ COCKROACHDB_PASSWORD : gis
93+ COCKROACHDB_DATABASE : gis
94+ # Set health checks to wait until CockroachDB has started
95+ options : >-
96+ --health-cmd="cockroach sql --user=gis --database=gis --execute='SELECT 1'"
97+ --health-interval=10s
98+ --health-timeout=5s
99+ --health-retries=3
86100
87101 steps :
88102
@@ -131,6 +145,12 @@ jobs:
131145 mysql --user=gis --password=gis --host=127.0.0.1 -P 3308 -e "SELECT VERSION();"
132146 mysql --user=root --password=gis --host=127.0.0.1 -P 3308 -e "GRANT ALL PRIVILEGES ON *.* TO 'gis'@'%' WITH GRANT OPTION;"
133147
148+ # Check CockroachDB
149+ - name : Check CockroachDB
150+ run : |
151+ cockroach sql --user=gis --database=gis --execute='SELECT VERSION();'
152+ cockroach sql --user=root --database=gis --execute='GRANT ALL PRIVILEGES ON *.* TO "gis"@"%" WITH GRANT OPTION;'
153+
134154 # Check python version
135155 - name : Display Python version
136156 run : |
You can’t perform that action at this time.
0 commit comments