@@ -138,6 +138,71 @@ jobs:
138138 run : |
139139 ./example "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"
140140
141+ mysql56-tests :
142+ name : MySQL 5.6 Tests ${{ matrix.compiler }}
143+ strategy :
144+ fail-fast : false
145+ # max-parallel: 2
146+ matrix :
147+ compiler :
148+ - dmd-latest
149+ - ldc-latest
150+ - dmd-2.095.1
151+ - dmd-2.094.2
152+ - ldc-1.25.1 # eq to dmd v2.095.1
153+ - ldc-1.24.0 # eq to dmd v2.094.1
154+
155+ runs-on : ubuntu-20.04
156+
157+ services :
158+ mysql :
159+ image : mysql:5.6
160+ ports : [3306]
161+ env :
162+ MYSQL_ROOT_PASSWORD : f48dfhw3Hd!Asah7i2aZ
163+ MYSQL_DATABASE : testdb
164+ MYSQL_USER : testuser
165+ MYSQL_PASSWORD : passw0rd
166+ # Set health checks to wait until mysql service has started
167+ options : >-
168+ --health-cmd "mysqladmin ping"
169+ --health-interval 10s
170+ --health-timeout 3s
171+ --health-retries 4
172+
173+ steps :
174+ - uses : actions/checkout@v2
175+
176+ - name : Install ${{ matrix.compiler }}
177+ uses : dlang-community/setup-dlang@v1
178+ with :
179+ compiler : ${{ matrix.compiler }}
180+
181+ - name : Install dependencies on Ubuntu
182+ if : startsWith(matrix.os, 'ubuntu')
183+ run : sudo apt-get update && sudo apt-get install libevent-dev -y
184+
185+ # # Turns out the unittest-vibe-ut tried to connect to an actualy MySQL on 172.18.0.1 so it's not
186+ # # actually a unit test at all. It's an integration test and should be pulled out from the main
187+ # # codebase into a separate sub module
188+ - name : Run unittest-vibe-ut
189+ env :
190+ MYSQL_PORT : ${{ job.services.mysql.ports[3306] }}
191+ run : |
192+ echo "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb" > testConnectionStr.txt
193+ dub run -c unittest-vibe-ut -- -t
194+
195+ - name : Build The Example Project
196+ working-directory : ./examples/homePage
197+ run : dub build
198+
199+ - name : Run Example (MySQL 5.6)
200+ working-directory : ./examples/homePage
201+ env :
202+ MYSQL_PORT : ${{ job.services.mysql.ports[3306] }}
203+ run : |
204+ ./example "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"
205+
141206 mariadb10-tests :
142207 name : MariaDB 10 Tests ${{ matrix.compiler }}
143208 strategy :
0 commit comments