2525 ports :
2626 - 3307:3306
2727 # needed because the mysql container does not provide a healthcheck
28- options : --health-cmd "mysqladmin ping -h localhost" --health-interval 10s --health-timeout 5s --health-retries 5
28+ options : --health-cmd "mysqladmin ping -h localhost" --health-interval 5s --health-timeout 5s --health-retries 10
2929
3030 steps :
3131 - uses : actions/checkout@v3
5151 run : |
5252 go test -v -tags sqlite -race ./...
5353
54- - name : Reset soda and run e2e
54+ - name : Reset database and run e2e
5555 env :
56- SODA_DIALECT : " sqlite "
56+ SODA_DIALECT : " mysql "
5757 run : |
5858 soda drop -e $SODA_DIALECT -p ./testdata/migrations
5959 soda create -e $SODA_DIALECT -p ./testdata/migrations
7777 POSTGRES_PASSWORD : postgres
7878 POSTGRES_DB : postgres
7979 ports :
80- - 5432 :5432
80+ - 5433 :5432
8181 # needed because the postgres container does not provide a healthcheck
82- options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
82+ options : --health-cmd pg_isready --health-interval 5s --health-timeout 5s --health-retries 10
8383
8484 steps :
8585 - uses : actions/checkout@v3
@@ -105,9 +105,9 @@ jobs:
105105 run : |
106106 go test -v -tags sqlite -race ./...
107107
108- - name : Reset soda and run e2e
108+ - name : Reset database and run e2e
109109 env :
110- SODA_DIALECT : " sqlite "
110+ SODA_DIALECT : " postgres "
111111 run : |
112112 soda drop -e $SODA_DIALECT -p ./testdata/migrations
113113 soda create -e $SODA_DIALECT -p ./testdata/migrations
@@ -136,7 +136,7 @@ jobs:
136136 pushd crdb
137137 wget -qO- https://binaries.cockroachdb.com/cockroach-v21.1.19.linux-amd64.tgz | tar -xz
138138 mv cockroach-v21.1.19.linux-amd64/* .
139- ./cockroach start-single-node --insecure --background
139+ ./cockroach start-single-node --insecure --background --sql-addr :26258
140140 popd
141141
142142 - name : Install and run soda
@@ -154,9 +154,9 @@ jobs:
154154 run : |
155155 go test -v -tags sqlite -race ./...
156156
157- - name : Reset soda and run e2e
157+ - name : Reset database and run e2e
158158 env :
159- SODA_DIALECT : " sqlite "
159+ SODA_DIALECT : " cockroach "
160160 run : |
161161 soda drop -e $SODA_DIALECT -p ./testdata/migrations
162162 soda create -e $SODA_DIALECT -p ./testdata/migrations
@@ -213,7 +213,7 @@ jobs:
213213 go test -v -tags sqlite ./...
214214 shell : bash
215215
216- - name : Reset soda and run e2e
216+ - name : Reset database and run e2e
217217 if : ${{ matrix.os != 'windows-latest' }}
218218 env :
219219 SODA_DIALECT : " sqlite"
@@ -224,7 +224,7 @@ jobs:
224224 go test -v -tags sqlite,e2e -race ./...
225225 shell : bash
226226
227- - name : Reset soda and run e2e without race detection
227+ - name : Reset database and run e2e without race detection
228228 if : ${{ matrix.os == 'windows-latest' }}
229229 env :
230230 SODA_DIALECT : " sqlite"
0 commit comments