Skip to content

Commit 14189fc

Browse files
committed
less compiler versions on integration testing
1 parent b51f0dd commit 14189fc

File tree

3 files changed

+4
-91
lines changed

3 files changed

+4
-91
lines changed

.github/workflows/dub.yml

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -92,82 +92,3 @@ jobs:
9292
# cache
9393
- uses: WebFreak001/[email protected]
9494
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"

.github/workflows/integration-testing.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: CI
1+
name: Test
22

33
# MySQL Native should work with the following database versions:
4-
# mysql:8
4+
# mysql:8 (Broken on MySQL 8 - this needs sorting)
55
# mysql:5.7
66
# mariadb:10
77

@@ -20,13 +20,6 @@ jobs:
2020
compiler:
2121
- dmd-latest
2222
- 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
3023

3124
runs-on: ubuntu-20.04
3225

@@ -87,7 +80,6 @@ jobs:
8780
compiler:
8881
- dmd-latest
8982
- ldc-latest
90-
- dmd-2.096.1
9183
- dmd-2.095.1
9284
- dmd-2.094.2
9385
- dmd-2.084.1
@@ -154,7 +146,6 @@ jobs:
154146
compiler:
155147
- dmd-latest
156148
- ldc-latest
157-
- dmd-2.096.1
158149
- dmd-2.095.1
159150
- dmd-2.094.2
160151
- dmd-2.084.1

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ MySQL native
22
============
33

44
[![DUB Package](https://img.shields.io/dub/v/mysql-native.svg)](https://code.dlang.org/packages/mysql-native)
5-
[![GitHub CI](https://github.com/mysql-d/mysql-native/actions/workflows/dub.yml/badge.svg)](https://github.com/mysql-d/mysql-native/actions/workflows/dub.yml)
5+
[![GitHub CI - Builds](https://github.com/mysql-d/mysql-native/actions/workflows/dub.yml/badge.svg)](https://github.com/mysql-d/mysql-native/actions/workflows/dub.yml)
6+
[![GitHub CI - Integration Testing](https://github.com/mysql-d/mysql-native/actions/workflows/integration-testing.yml/badge.svg)](https://github.com/mysql-d/mysql-native/actions/workflows/integration-testing.yml)
67

78
A [Boost-licensed](http://www.boost.org/LICENSE_1_0.txt) native [D](http://dlang.org)
89
client driver for MySQL and MariaDB.

0 commit comments

Comments
 (0)