Skip to content

run tests against MySQL 5.6 #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,77 @@ jobs:
run: |
./example "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"

mysql56-tests:
name: MySQL 5.6 Tests ${{ matrix.compiler }}
strategy:
fail-fast: false
# max-parallel: 2
matrix:
compiler:
- dmd-latest
- ldc-latest
- dmd-2.095.1
- dmd-2.094.2
- ldc-1.25.1 # eq to dmd v2.095.1
- ldc-1.24.0 # eq to dmd v2.094.1

runs-on: ubuntu-20.04

services:
mysql:
image: mysql:5.6
ports: [3306]
env:
MYSQL_ROOT_PASSWORD: f48dfhw3Hd!Asah7i2aZ
MYSQL_DATABASE: testdb
MYSQL_USER: testuser
MYSQL_PASSWORD: passw0rd
# Set health checks to wait until mysql service has started
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 3s
--health-retries 4

steps:
- uses: actions/checkout@v2

- name: Install ${{ matrix.compiler }}
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.compiler }}

- name: Set up test connection string
env:
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
run: |
echo "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb" > testConnectionStr.txt

- name: Run unittests with Vibe.d
run: |
dub run ":integration-tests-vibe"

- name: Run unittests with Phobos
run: |
dub run ":integration-tests-phobos"

- name: Run test connection utility
env:
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
run: |
dub run ":testconn" -- "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"

- name: Build The Example Project
working-directory: ./examples/homePage
run: dub build

- name: Run Example (MySQL 5.6)
working-directory: ./examples/homePage
env:
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
run: |
./example "host=localhost;port=$MYSQL_PORT;user=testuser;pwd=passw0rd;db=testdb"

mariadb10-tests:
name: MariaDB 10 Tests ${{ matrix.compiler }}
strategy:
Expand Down