Skip to content

Commit 0a8c326

Browse files
committed
Remove kanboard/tests image
1 parent 05ada0b commit 0a8c326

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

.github/workflows/unit_tests.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
jobs:
88
Sqlite:
99
runs-on: ubuntu-latest
10-
container: kanboard/tests:latest
1110
steps:
1211
- name: Checkout Kanboard repo
1312
uses: actions/checkout@v2
@@ -24,14 +23,13 @@ jobs:
2423

2524
Postgres:
2625
runs-on: ubuntu-latest
27-
container: kanboard/tests:latest
2826
services:
2927
postgres:
3028
image: postgres:9.4
3129
env:
3230
POSTGRES_USER: postgres
3331
POSTGRES_PASSWORD: postgres
34-
POSTGRES_DB: postgres
32+
POSTGRES_DB: kanboard_unit_test
3533
ports:
3634
- 5432:5432
3735
options: >-
@@ -53,24 +51,26 @@ jobs:
5351
- name: Unit tests with Postgres
5452
run: ./vendor/bin/phpunit -c tests/units.postgres.xml plugins/DatabaseStorage/Test/
5553
env:
56-
DB_HOSTNAME: postgres
54+
DB_HOSTNAME: 127.0.0.1
5755
DB_PORT: ${{ job.services.postgres.ports[5432] }}
58-
59-
MariaDB:
56+
57+
MySQL:
6058
runs-on: ubuntu-latest
61-
container: kanboard/tests:latest
6259
services:
63-
mariadb:
64-
image: mariadb:latest
60+
mysql:
61+
image: mysql:5.7
6562
env:
66-
MYSQL_ROOT_PASSWORD: secret
63+
MYSQL_ROOT_PASSWORD: "kanboard"
64+
MYSQL_DATABASE: "kanboard_unit_test"
65+
MYSQL_USER: "kanboard"
66+
MYSQL_PASSWORD: "kanboard"
6767
ports:
6868
- 3306:3306
6969
options: >-
70-
--health-cmd "mysqladmin ping"
70+
--health-cmd="mysqladmin ping"
7171
--health-interval 10s
7272
--health-timeout 5s
73-
--health-retries 5
73+
--health-retries 10
7474
steps:
7575
- name: Checkout Kanboard repo
7676
uses: actions/checkout@v2
@@ -85,6 +85,8 @@ jobs:
8585
- name: Unit tests with MariaDB
8686
run: ./vendor/bin/phpunit -c tests/units.mysql.xml plugins/DatabaseStorage/Test/
8787
env:
88-
DB_HOSTNAME: mariadb
89-
DB_PASSWORD: secret
90-
DB_PORT: ${{ job.services.mariadb.ports[3306] }}
88+
DB_HOSTNAME: 127.0.0.1
89+
DB_USERNAME: kanboard
90+
DB_PASSWORD: kanboard
91+
DB_NAME: kanboard_unit_test
92+
DB_PORT: ${{ job.services.mysql.ports[3306] }}

Test/PluginTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace KanboardTests\units;
4+
35
require_once 'tests/units/Base.php';
46

57
use Kanboard\Plugin\DatabaseStorage\Plugin;

0 commit comments

Comments
 (0)