|
1 |
| -name: CI |
| 1 | +name: Integration Tests |
2 | 2 |
|
3 | 3 | # MySQL Native should work with the following database versions:
|
4 |
| -# mysql:8 |
| 4 | +# mysql:8 (Broken on MySQL 8 - see: https://github.com/mysql-d/mysql-native/issues/230) |
5 | 5 | # mysql:5.7
|
6 | 6 | # mariadb:10
|
7 | 7 |
|
|
12 | 12 | pull_request:
|
13 | 13 |
|
14 | 14 | jobs:
|
15 |
| - mysql8-tests: |
16 |
| - name: MySQL 8 Tests ${{ matrix.compiler }} |
17 |
| - strategy: |
18 |
| - fail-fast: false |
19 |
| - matrix: |
20 |
| - compiler: |
21 |
| - - dmd-latest |
22 |
| - - ldc-latest |
23 |
| - - dmd-2.096.1 |
24 |
| - - dmd-2.095.1 |
25 |
| - - dmd-2.094.2 |
26 |
| - - dmd-2.084.1 |
27 |
| - - dmd-2.083.1 ## As far back as unit-threaded seems to work |
28 |
| - - ldc-1.23.0 # eq to dmd v2.093.1 |
29 |
| - - ldc-1.19.0 # eq to dmd v2.089.1 |
30 |
| - |
31 |
| - runs-on: ubuntu-20.04 |
32 |
| - |
33 |
| - services: |
34 |
| - mysql: |
35 |
| - image: mysql:8 |
36 |
| - ports: [3306] |
37 |
| - env: |
38 |
| - MYSQL_ROOT_PASSWORD: f48dfhw3Hd!Asah7i2aZ |
39 |
| - MYSQL_DATABASE: testdb |
40 |
| - MYSQL_USER: testuser |
41 |
| - MYSQL_PASSWORD: passw0rd |
42 |
| - # Set health checks to wait until mysql service has started |
43 |
| - options: >- |
44 |
| - --health-cmd "mysqladmin ping" |
45 |
| - --health-interval 10s |
46 |
| - --health-timeout 3s |
47 |
| - --health-retries 4 |
48 |
| -
|
49 |
| - steps: |
50 |
| - - uses: actions/checkout@v2 |
51 |
| - |
52 |
| - - name: Install ${{ matrix.compiler }} |
53 |
| - uses: dlang-community/setup-dlang@v1 |
54 |
| - with: |
55 |
| - compiler: ${{ matrix.compiler }} |
56 |
| - |
57 |
| - - name: Install dependencies on Ubuntu |
58 |
| - if: startsWith(matrix.os, 'ubuntu') |
59 |
| - run: sudo apt-get update && sudo apt-get install libevent-dev -y |
60 |
| - |
61 |
| - ## Turns out the unittest-vibe-ut tried to connect to an actualy MySQL on 172.18.0.1 so it's not |
62 |
| - ## actually a unit test at all. It's an integration test and should be pulled out from the main |
63 |
| - ## codebase into a separate sub module |
64 |
| - - name: Run unittest-vibe-ut |
65 |
| - env: |
66 |
| - MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} |
67 |
| - run: | |
68 |
| - echo "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb" > testConnectionStr.txt |
69 |
| - dub run -c unittest-vibe-ut -- -t |
70 |
| -
|
71 |
| - - name: Build The Example Project |
72 |
| - working-directory: ./examples/homePage |
73 |
| - run: dub build |
74 |
| - |
75 |
| - - name: Run Example (MySQL 8) |
76 |
| - working-directory: ./examples/homePage |
77 |
| - env: |
78 |
| - MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} |
79 |
| - run: | |
80 |
| - ./example "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb" |
| 15 | + # mysql8-tests: |
| 16 | + # name: MySQL 8 Tests ${{ matrix.compiler }} |
| 17 | + # strategy: |
| 18 | + # fail-fast: false |
| 19 | + # max-parallel: 2 |
| 20 | + # matrix: |
| 21 | + # compiler: |
| 22 | + # - dmd-latest |
| 23 | + # - ldc-latest |
| 24 | + |
| 25 | + # runs-on: ubuntu-20.04 |
| 26 | + |
| 27 | + # services: |
| 28 | + # mysql: |
| 29 | + # image: mysql:8 |
| 30 | + # ports: [3306] |
| 31 | + # env: |
| 32 | + # MYSQL_ROOT_PASSWORD: f48dfhw3Hd!Asah7i2aZ |
| 33 | + # MYSQL_DATABASE: testdb |
| 34 | + # MYSQL_USER: testuser |
| 35 | + # MYSQL_PASSWORD: passw0rd |
| 36 | + # # Set health checks to wait until mysql service has started |
| 37 | + # options: >- |
| 38 | + # --health-cmd "mysqladmin ping" |
| 39 | + # --health-interval 10s |
| 40 | + # --health-timeout 3s |
| 41 | + # --health-retries 4 |
| 42 | + |
| 43 | + # 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" |
81 | 75 |
|
82 | 76 | mysql57-tests:
|
83 | 77 | name: MySQL 5.7 Tests ${{ matrix.compiler }}
|
84 | 78 | strategy:
|
85 | 79 | fail-fast: false
|
| 80 | + max-parallel: 2 |
86 | 81 | matrix:
|
87 | 82 | compiler:
|
88 | 83 | - dmd-latest
|
89 | 84 | - ldc-latest
|
90 |
| - - dmd-2.096.1 |
91 | 85 | - dmd-2.095.1
|
92 | 86 | - dmd-2.094.2
|
93 | 87 | - dmd-2.084.1
|
@@ -150,11 +144,11 @@ jobs:
|
150 | 144 | name: MariaDB 10 Tests ${{ matrix.compiler }}
|
151 | 145 | strategy:
|
152 | 146 | fail-fast: false
|
| 147 | + max-parallel: 2 |
153 | 148 | matrix:
|
154 | 149 | compiler:
|
155 | 150 | - dmd-latest
|
156 | 151 | - ldc-latest
|
157 |
| - - dmd-2.096.1 |
158 | 152 | - dmd-2.095.1
|
159 | 153 | - dmd-2.094.2
|
160 | 154 | - dmd-2.084.1
|
|
0 commit comments