19
19
runs-on : ubuntu-latest
20
20
env :
21
21
ORACLE_VERSION : ${{matrix.oracle-version}}
22
+ ORACLE_SID : ${{matrix.oracle-sid}}
22
23
CONNECTION_STR : ${{matrix.connection-str}}
23
24
ORACLE_PASSWORD : oracle
24
25
DOCKER_VOLUME : ${{matrix.docker-volume}}
@@ -27,31 +28,38 @@ jobs:
27
28
matrix :
28
29
include :
29
30
- oracle-version : " gvenzl/oracle-xe:11-full"
31
+ oracle-sid : ' XE'
30
32
connection-str : ' 127.0.0.1:1521/XE'
31
33
id : 1
32
34
db_version_name : ' 11xe'
33
35
# TODO - need to add healthcheck.sh into our containers
34
36
# - oracle-version: "utplsqlv3/oracledb:12c-r1-se2-small"
37
+ # oracle-sid: 'ORCLCDB'
35
38
# connection-str: '127.0.0.1:1521/ORCLCDB'
36
39
# id: 2
37
40
# db_version_name: '12.1se'
38
41
# - oracle-version: "utplsqlv3/oracledb:12c-r2-se2-small"
42
+ # oracle-sid: 'ORCLCDB'
39
43
# connection-str: '127.0.0.1:1521/ORCLCDB'
40
44
# id: 3
41
45
# db_version_name: '12.2se'
42
46
- oracle-version : " gvenzl/oracle-xe:18-slim"
47
+ oracle-sid : ' XE'
43
48
connection-str : ' 127.0.0.1:1521/XE'
44
49
id : 4
45
50
db_version_name : ' 18xe'
46
51
# - oracle-version: "utplsqlv3/oracledb:18c-se2-small"
52
+ # oracle-sid: 'ORCLCDB'
47
53
# connection-str: '127.0.0.1:1521/ORCLCDB'
48
54
# id: 5
49
55
# db_version_name: '18se'
50
56
# - oracle-version: "utplsqlv3/oracledb:19c-se2-small"
57
+ # oracle-sid: 'ORCLCDB'
51
58
# connection-str: '127.0.0.1:1521/ORCLCDB'
52
59
# id: 6
53
60
# db_version_name: '19se'
54
61
- oracle-version : " gvenzl/oracle-xe:21-slim"
62
+ oracle-sid : ' XE'
55
63
connection-str : ' 127.0.0.1:1521/XE'
56
64
id : 7
57
65
db_version_name : ' 21xe'
@@ -129,12 +137,31 @@ jobs:
129
137
id : validate-reports-format
130
138
run : bash .github/scripts/validate_report_files.sh
131
139
140
+ - name : Codecov
141
+ uses : codecov/codecov-action@v2
142
+ with :
143
+ token : ${{ secrets.CODECOV_TOKEN }} # not required for public repos
144
+ files : ./cobertura.xml
145
+ flags : ${{matrix.db_version_name}}
146
+ fail_ci_if_error : true # optional (default = false)
147
+
148
+ - name : Publish unit test results
149
+ uses : EnricoMi/publish-unit-test-result-action@v1.24
150
+ if : always()
151
+ with :
152
+ files : junit_test_results.xml
153
+
132
154
- name : SonarCloud Scan
133
155
id : sonar
134
156
uses : SonarSource/sonarcloud-github-action@master
135
157
env :
136
158
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
137
159
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
160
+ with :
161
+ args : >
162
+ -Dsonar.buildString=${{ format( '{0}.{1}', env.UTPLSQL_BUILD_VERSION, matrix.id ) }}
163
+ -Dsonar.plsql.jdbc.url=${{ format( 'jdbc:oracle:thin:@//oracle:1521/{0}', env.ORACLE_SID ) }}
164
+ -Dsonar.plsql.jdbc.driver.path=${{ format( '{0}/ojdbc8.jar', env.OJDBC_HOME ) }}
138
165
139
166
publish :
140
167
name : Deploy documentation
0 commit comments