|
92 | 92 | # cache
|
93 | 93 | - uses: WebFreak001/[email protected]
|
94 | 94 | with: { store: true }
|
95 |
| - |
96 |
| - integration-tests: |
97 |
| - name: Integration Tests ${{ matrix.compiler }} |
98 |
| - strategy: |
99 |
| - fail-fast: false |
100 |
| - matrix: |
101 |
| - compiler: |
102 |
| - - dmd-latest |
103 |
| - - ldc-latest |
104 |
| - - dmd-2.096.1 |
105 |
| - - dmd-2.095.1 |
106 |
| - - dmd-2.094.2 |
107 |
| - - dmd-2.093.1 |
108 |
| - - dmd-2.092.1 |
109 |
| - - dmd-2.091.1 |
110 |
| - - dmd-2.090.1 |
111 |
| - - dmd-2.089.1 |
112 |
| - - dmd-2.088.1 |
113 |
| - - dmd-2.087.1 |
114 |
| - - dmd-2.086.1 |
115 |
| - - dmd-2.085.1 |
116 |
| - - dmd-2.084.1 |
117 |
| - - dmd-2.083.1 ## As far back as unit-threaded seems to work |
118 |
| - - ldc-1.23.0 # eq to dmd v2.093.1 |
119 |
| - - ldc-1.22.0 # eq to dmd v2.092.1 |
120 |
| - - ldc-1.21.0 # eq to dmd v2.091.1 |
121 |
| - - ldc-1.20.1 # eq to dmd v2.090.1 |
122 |
| - - ldc-1.19.0 # eq to dmd v2.089.1 |
123 |
| - |
124 |
| - runs-on: ubuntu-20.04 |
125 |
| - |
126 |
| - services: |
127 |
| - mysql: |
128 |
| - image: mysql:5.7 |
129 |
| - ports: [3306] |
130 |
| - env: |
131 |
| - MYSQL_ROOT_PASSWORD: f48dfhw3Hd!Asah7i2aZ |
132 |
| - MYSQL_DATABASE: testdb |
133 |
| - MYSQL_USER: testuser |
134 |
| - MYSQL_PASSWORD: passw0rd |
135 |
| - # Set health checks to wait until mysql service has started |
136 |
| - options: >- |
137 |
| - --health-cmd "mysqladmin ping" |
138 |
| - --health-interval 10s |
139 |
| - --health-timeout 3s |
140 |
| - --health-retries 4 |
141 |
| -
|
142 |
| - steps: |
143 |
| - - uses: actions/checkout@v2 |
144 |
| - |
145 |
| - - name: Install ${{ matrix.compiler }} |
146 |
| - uses: dlang-community/setup-dlang@v1 |
147 |
| - with: |
148 |
| - compiler: ${{ matrix.compiler }} |
149 |
| - |
150 |
| - - name: Install dependencies on Ubuntu |
151 |
| - if: startsWith(matrix.os, 'ubuntu') |
152 |
| - run: sudo apt-get update && sudo apt-get install libevent-dev -y |
153 |
| - |
154 |
| - ## Turns out the unittest-vibe-ut tried to connect to an actualy MySQL on 172.18.0.1 so it's not |
155 |
| - ## actually a unit test at all. It's an integration test and should be pulled out from the main |
156 |
| - ## codebase into a separate sub module |
157 |
| - - name: Run unittest-vibe-ut |
158 |
| - env: |
159 |
| - MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} |
160 |
| - run: | |
161 |
| - echo "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb" > testConnectionStr.txt |
162 |
| - dub run -c unittest-vibe-ut -- -t |
163 |
| -
|
164 |
| - - name: Build The Example Project |
165 |
| - working-directory: ./examples/homePage |
166 |
| - run: dub build |
167 |
| - |
168 |
| - - name: Run Example (MySQL 5.7) |
169 |
| - working-directory: ./examples/homePage |
170 |
| - env: |
171 |
| - MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} |
172 |
| - run: | |
173 |
| - ./example "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb" |
0 commit comments