99 schedule :
1010 - cron : ' 30 7 1 * *'
1111 push :
12+ branches :
13+ - master
1214 pull_request :
15+ workflow_dispatch :
1316
1417jobs :
1518 # mysql8-tests:
@@ -41,37 +44,37 @@ jobs:
4144 # --health-retries 4
4245
4346 # steps:
44- # - uses: actions/checkout@v2
45-
46- # - name: Install ${{ matrix.compiler }}
47- # uses: dlang-community/setup-dlang@v1
48- # with:
49- # compiler: ${{ matrix.compiler }}
50-
51- # - name: Install dependencies on Ubuntu
52- # if: startsWith(matrix.os, 'ubuntu')
53- # run: sudo apt-get update && sudo apt-get install libevent-dev -y
54-
55- # ## Turns out the unittest-vibe-ut tried to connect to an actualy MySQL on 172.18.0.1 so it's not
56- # ## actually a unit test at all. It's an integration test and should be pulled out from the main
57- # ## codebase into a separate sub module
58- # - name: Run unittest-vibe-ut
59- # env:
60- # MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
61- # run: |
62- # echo "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb" > testConnectionStr.txt
63- # dub run -c unittest-vibe-ut -- -t
64-
65- # - name: Build The Example Project
66- # working-directory: ./examples/homePage
67- # run: dub build
68-
69- # - name: Run Example (MySQL 8)
70- # working-directory: ./examples/homePage
71- # env:
72- # MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
73- # run: |
74- # ./example "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"
47+ # - uses: actions/checkout@v2
48+
49+ # - name: Install ${{ matrix.compiler }}
50+ # uses: dlang-community/setup-dlang@v1
51+ # with:
52+ # compiler: ${{ matrix.compiler }}
53+
54+ # - name: Set up test connection string
55+ # env:
56+ # MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
57+ # run: |
58+ # echo "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb" > testConnectionStr.txt
59+
60+ # - name: Run unittests with Vibe.d
61+ # run: |
62+ # dub run ":integration-tests-vibe"
63+
64+ # - name: Run unittests with Phobos
65+ # run: |
66+ # dub run ":integration-tests-phobos"
67+
68+ # - name: Build The Example Project
69+ # working-directory: ./examples/homePage
70+ # run: dub build
71+
72+ # - name: Run Example (MySQL 8)
73+ # working-directory: ./examples/homePage
74+ # env:
75+ # MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
76+ # run: |
77+ # ./example "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"
7578
7679 mysql57-tests :
7780 name : MySQL 5.7 Tests ${{ matrix.compiler }}
@@ -113,19 +116,25 @@ jobs:
113116 with :
114117 compiler : ${{ matrix.compiler }}
115118
116- - name : Install dependencies on Ubuntu
117- if : startsWith(matrix.os, 'ubuntu')
118- run : sudo apt-get update && sudo apt-get install libevent-dev -y
119-
120- # # Turns out the unittest-vibe-ut tried to connect to an actualy MySQL on 172.18.0.1 so it's not
121- # # actually a unit test at all. It's an integration test and should be pulled out from the main
122- # # codebase into a separate sub module
123- - name : Run unittest-vibe-ut
119+ - name : Set up test connection string
124120 env :
125121 MYSQL_PORT : ${{ job.services.mysql.ports[3306] }}
126122 run : |
127123 echo "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb" > testConnectionStr.txt
128- dub run -c unittest-vibe-ut -- -t
124+
125+ - name : Run unittests with Vibe.d
126+ run : |
127+ dub run ":integration-tests-vibe"
128+
129+ - name : Run unittests with Phobos
130+ run : |
131+ dub run ":integration-tests-phobos"
132+
133+ - name : Run test connection utility
134+ env :
135+ MYSQL_PORT : ${{ job.services.mysql.ports[3306] }}
136+ run : |
137+ dub run ":testconn" -- "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"
129138
130139 - name : Build The Example Project
131140 working-directory : ./examples/homePage
@@ -178,19 +187,25 @@ jobs:
178187 with :
179188 compiler : ${{ matrix.compiler }}
180189
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
190+ - name : Set up test connection string
189191 env :
190192 MYSQL_PORT : ${{ job.services.mysql.ports[3306] }}
191193 run : |
192194 echo "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb" > testConnectionStr.txt
193- dub run -c unittest-vibe-ut -- -t
195+
196+ - name : Run unittests with Vibe.d
197+ run : |
198+ dub run ":integration-tests-vibe"
199+
200+ - name : Run unittests with Phobos
201+ run : |
202+ dub run ":integration-tests-phobos"
203+
204+ - name : Run test connection utility
205+ env :
206+ MYSQL_PORT : ${{ job.services.mysql.ports[3306] }}
207+ run : |
208+ dub run ":testconn" -- "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"
194209
195210 - name : Build The Example Project
196211 working-directory : ./examples/homePage
@@ -201,4 +216,4 @@ jobs:
201216 env :
202217 MYSQL_PORT : ${{ job.services.mysql.ports[3306] }}
203218 run : |
204- ./example "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"
219+ ./example "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"
0 commit comments