@@ -27,56 +27,129 @@ concurrency:
2727jobs :
2828 build :
2929 name : Build
30- runs-on : ubuntu-20.04
30+ runs-on : ubuntu-latest
3131 steps :
32- - uses : actions/checkout@v1
32+ - uses : actions/checkout@v4
3333 - name : Build
3434 shell : bash
3535 env :
3636 WHITESOURCE_API_KEY : ${{ secrets.WHITESOURCE_API_KEY }}
3737 run : ./ci/build.sh
3838
39+ test-windows :
40+ needs : build
41+ name : ${{ matrix.runConfig.cloud }} Windows java ${{ matrix.runConfig.javaVersion }} JDBC${{ matrix.additionalMavenProfile }} ${{ matrix.category.name }}
42+ runs-on : windows-latest
43+ strategy :
44+ fail-fast : false
45+ matrix :
46+ runConfig : [ {cloud: 'AWS', javaVersion: '8'}, {cloud: 'GCP', javaVersion: '11'}, {cloud: 'AZURE', javaVersion: '17'}, {cloud: 'AWS', javaVersion: '21'}]
47+ category : [{suites: 'ResultSetTestSuite,StatementTestSuite,LoaderTestSuite', name: 'TestCategoryResultSet,TestCategoryStatement,TestCategoryLoader'},
48+ {suites: 'OthersTestSuite', name: 'TestCategoryOthers'},
49+ {suites: 'ArrowTestSuite,ConnectionTestSuite,CoreTestSuite,DiagnosticTestSuite', name: 'TestCategoryArrow,TestCategoryConnection,TestCategoryCore,TestCategoryDiagnostic'},
50+ {suites: 'FipsTestSuite', name: "TestCategoryFips"}]
51+ additionalMavenProfile : ['']
52+ steps :
53+ - uses : actions/checkout@v4
54+ - uses : actions/setup-java@v4
55+ with :
56+ java-version : ${{ matrix.runConfig.javaVersion }}
57+ distribution : ' temurin'
58+ cache : maven
59+ - uses : actions/setup-python@v5
60+ with :
61+ python-version : ' 3.7'
62+ architecture : ' x64'
63+ - name : Tests
64+ shell : cmd
65+ env :
66+ PARAMETERS_SECRET : ${{ secrets.PARAMETERS_SECRET }}
67+ CLOUD_PROVIDER : ${{ matrix.runConfig.cloud }}
68+ JDBC_TEST_SUITES : ${{ matrix.category.suites }}
69+ ADDITIONAL_MAVEN_PROFILE : ${{ matrix.additionalMavenProfile }}
70+ run : ci\\test_windows.bat
71+
72+ test-mac :
73+ needs : build
74+ name : ${{ matrix.runConfig.cloud }} Mac java ${{ matrix.runConfig.javaVersion }} JDBC${{ matrix.additionalMavenProfile }} ${{ matrix.category.name }}
75+ runs-on : macos-13
76+ strategy :
77+ fail-fast : false
78+ matrix :
79+ runConfig : [ {cloud: 'AWS', javaVersion: '8'}, {cloud: 'GCP', javaVersion: '11'}, {cloud: 'AZURE', javaVersion: '17'}, {cloud: 'AWS', javaVersion: '21'}]
80+ category : [{suites: 'ResultSetTestSuite,StatementTestSuite,LoaderTestSuite', name: 'TestCategoryResultSet,TestCategoryStatement,TestCategoryLoader'},
81+ {suites: 'OthersTestSuite', name: 'TestCategoryOthers'},
82+ {suites: 'ArrowTestSuite,ConnectionTestSuite,CoreTestSuite,DiagnosticTestSuite', name: 'TestCategoryArrow,TestCategoryConnection,TestCategoryCore,TestCategoryDiagnostic'},
83+ {suites: 'FipsTestSuite', name: "TestCategoryFips"}]
84+ additionalMavenProfile : ['']
85+ steps :
86+ - uses : actions/checkout@v4
87+ - uses : actions/setup-java@v4
88+ with :
89+ java-version : ${{ matrix.runConfig.javaVersion }}
90+ distribution : ' temurin'
91+ cache : maven
92+ - uses : actions/setup-python@v5
93+ with :
94+ python-version : ' 3.7'
95+ - name : Install Homebrew Bash
96+ shell : bash
97+ run : brew install bash
98+ - name : Tests
99+ shell : bash
100+ env :
101+ PARAMETERS_SECRET : ${{ secrets.PARAMETERS_SECRET }}
102+ CLOUD_PROVIDER : ${{ matrix.runConfig.cloud }}
103+ JDBC_TEST_SUITES : ${{ matrix.category.suites }}
104+ ADDITIONAL_MAVEN_PROFILE : ${{ matrix.additionalMavenProfile }}
105+ run : /usr/local/bin/bash ./ci/test_mac.sh
106+
39107 test-linux :
40108 needs : build
41- name : ${{ matrix.cloud }} JDBC ${{ matrix.additionalMavenProfile }} ${{ matrix.category }} on ${{ matrix.image }}
109+ name : ${{ matrix.cloud }} Linux java on ${{ matrix.image }} JDBC ${{ matrix.additionalMavenProfile }} ${{ matrix.category.name }}
42110 runs-on : ubuntu-latest
43111 strategy :
44112 fail-fast : false
45113 matrix :
46- image : [ 'jdbc-centos7-openjdk8', 'jdbc-centos7-openjdk11', 'jdbc-centos7-openjdk17' ]
47- cloud : [ 'AWS' ]
48- category : ['TestCategoryResultSet,TestCategoryOthers,TestCategoryLoader', 'TestCategoryConnection,TestCategoryStatement', 'TestCategoryArrow,TestCategoryCore', 'TestCategoryFips']
114+ image : [ 'jdbc-centos7-openjdk8', 'jdbc-centos7-openjdk11', 'jdbc-centos7-openjdk17', 'jdbc-centos7-openjdk21' ]
115+ cloud : [ 'AWS', 'AZURE', 'GCP' ]
116+ category : [{suites: 'ResultSetTestSuite,StatementTestSuite,LoaderTestSuite', name: 'TestCategoryResultSet,TestCategoryStatement,TestCategoryLoader'},
117+ {suites: 'OthersTestSuite', name: 'TestCategoryOthers'},
118+ {suites: 'ArrowTestSuite,ConnectionTestSuite,CoreTestSuite,DiagnosticTestSuite', name: 'TestCategoryArrow,TestCategoryConnection,TestCategoryCore,TestCategoryDiagnostic'},
119+ {suites: 'FipsTestSuite', name: "TestCategoryFips"}]
49120 additionalMavenProfile : ['', '-Dthin-jar']
50121 steps :
51- - uses : actions/checkout@v1
122+ - uses : actions/checkout@v4
52123 - name : Tests
53124 shell : bash
54125 env :
55126 PARAMETERS_SECRET : ${{ secrets.PARAMETERS_SECRET }}
56127 CLOUD_PROVIDER : ${{ matrix.cloud }}
57128 TARGET_DOCKER_TEST_IMAGE : ${{ matrix.image }}
58- JDBC_TEST_CATEGORY : ${{ matrix.category }}
129+ JDBC_TEST_SUITES : ${{ matrix.category.suites }}
59130 ADDITIONAL_MAVEN_PROFILE : ${{ matrix.additionalMavenProfile }}
60131 run : ./ci/test.sh
61132
62133 test-linux-old-driver :
63- name : Old JDBC ${{ matrix.category }} on ${{ matrix.image }}
134+ name : Old JDBC ${{ matrix.category.name }} on ${{ matrix.image }}
64135 runs-on : ubuntu-latest
65136 strategy :
66137 fail-fast : false
67138 matrix :
68139 image : [ 'jdbc-centos7-openjdk8' ]
69140 cloud : [ 'AWS' ]
70- category : ['TestCategoryResultSet,TestCategoryOthers', 'TestCategoryConnection,TestCategoryStatement', 'TestCategoryCore,TestCategoryLoader']
141+ category : [{suites: 'OthersOldDriverTestSuite', name: 'TestCategoryOthers'},
142+ {suites: 'ConnectionOldDriverTestSuite,StatementOldDriverTestSuite', name: 'TestCategoryConnection,TestCategoryStatement'},
143+ {suites: 'LoaderOldDriverTestSuite,ResultSetOldDriverTestSuite', name: 'TestCategoryLoader,TestCategoryResultSet'}]
71144 is_old_driver : ['true']
72145 steps :
73- - uses : actions/checkout@v1
146+ - uses : actions/checkout@v4
74147 - name : Tests
75148 shell : bash
76149 env :
77150 PARAMETERS_SECRET : ${{ secrets.PARAMETERS_SECRET }}
78151 CLOUD_PROVIDER : ${{ matrix.cloud }}
79152 TARGET_DOCKER_TEST_IMAGE : ${{ matrix.image }}
80- JDBC_TEST_CATEGORY : ${{ matrix.category }}
153+ JDBC_TEST_SUITES : ${{ matrix.category.suites }}
81154 is_old_driver : ${{ matrix.is_old_driver }}
82155 run : ./ci/test.sh
0 commit comments