Skip to content

Commit f22893f

Browse files
committed
migrating mysql test to github
1 parent eec4e85 commit f22893f

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
name: Java CI
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [ master, eugene/* ]
55
pull_request:
66
branches: [ master ]
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
11+
services:
12+
mysql:
13+
image: mysql:8.0
14+
env:
15+
MYSQL_DATABASE: JAVACOMMONS
16+
MYSQL_USER: JAVACOMMONS
17+
MYSQL_PASSWORD: JAVACOMMONS
18+
MYSQL_ROOT_PASSWORD: ROOTPASSWD
19+
ports:
20+
- 3306:3306
21+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
22+
1023
steps:
1124
- uses: actions/checkout@v1
1225
- name: Init submodules

src/test/java/picoded/dstack/jsql/JSqlTestConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private static boolean isLocalPortInUse(int port) {
6161
//-------------------------------//
6262
// Default Credentials for MYSQL //
6363
//-------------------------------//
64-
static private String MYSQL_HOST = "demodb-mysql.picoded-dev.com";
64+
static private String MYSQL_HOST = "localhost";
6565
static private String MYSQL_DATA = "JAVACOMMONS";
6666
static private String MYSQL_USER = "JAVACOMMONS";
6767
static private String MYSQL_PASS = "JAVACOMMONS";

0 commit comments

Comments
 (0)