1919 runs-on : ubuntu-latest
2020 env :
2121 ORACLE_VERSION : ${{matrix.oracle-version}}
22+ ORACLE_SID : ${{matrix.oracle-sid}}
2223 CONNECTION_STR : ${{matrix.connection-str}}
2324 ORACLE_PASSWORD : oracle
2425 DOCKER_VOLUME : ${{matrix.docker-volume}}
@@ -27,31 +28,38 @@ jobs:
2728 matrix :
2829 include :
2930 - oracle-version : " gvenzl/oracle-xe:11-full"
31+ oracle-sid : ' XE'
3032 connection-str : ' 127.0.0.1:1521/XE'
3133 id : 1
3234 db_version_name : ' 11xe'
3335# TODO - need to add healthcheck.sh into our containers
3436# - oracle-version: "utplsqlv3/oracledb:12c-r1-se2-small"
37+ # oracle-sid: 'ORCLCDB'
3538# connection-str: '127.0.0.1:1521/ORCLCDB'
3639# id: 2
3740# db_version_name: '12.1se'
3841# - oracle-version: "utplsqlv3/oracledb:12c-r2-se2-small"
42+ # oracle-sid: 'ORCLCDB'
3943# connection-str: '127.0.0.1:1521/ORCLCDB'
4044# id: 3
4145# db_version_name: '12.2se'
4246 - oracle-version : " gvenzl/oracle-xe:18-slim"
47+ oracle-sid : ' XE'
4348 connection-str : ' 127.0.0.1:1521/XE'
4449 id : 4
4550 db_version_name : ' 18xe'
4651# - oracle-version: "utplsqlv3/oracledb:18c-se2-small"
52+ # oracle-sid: 'ORCLCDB'
4753# connection-str: '127.0.0.1:1521/ORCLCDB'
4854# id: 5
4955# db_version_name: '18se'
5056# - oracle-version: "utplsqlv3/oracledb:19c-se2-small"
57+ # oracle-sid: 'ORCLCDB'
5158# connection-str: '127.0.0.1:1521/ORCLCDB'
5259# id: 6
5360# db_version_name: '19se'
5461 - oracle-version : " gvenzl/oracle-xe:21-slim"
62+ oracle-sid : ' XE'
5563 connection-str : ' 127.0.0.1:1521/XE'
5664 id : 7
5765 db_version_name : ' 21xe'
92100
93101 - name : Download utPLSQL release for testing
94102# For PR build - test using target branch as framework, for branch build use self as testing framework
95- run : git clone --depth=1 --branch=${CI_HEAD_REF :-$CI_REF_NAME} https://github.com/utPLSQL/utPLSQL.git $UTPLSQL_DIR
103+ run : git clone --depth=1 --branch=${CI_BASE_REF :-$CI_REF_NAME} https://github.com/utPLSQL/utPLSQL.git $UTPLSQL_DIR
96104
97105 - name : Update privileges on sources
98106 run : chmod -R go+w ./{source,test,examples,${UTPLSQL_DIR}/source}
@@ -129,13 +137,32 @@ jobs:
129137 id : validate-reports-format
130138 run : bash .github/scripts/validate_report_files.sh
131139
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+
132154 - name : SonarCloud Scan
133155 id : sonar
134156 if : ${{ matrix.db_version_name == '21xe' }}
135157 uses : SonarSource/sonarcloud-github-action@master
136158 env :
137159 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
138160 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
161+ with :
162+ args : >
163+ -Dsonar.buildString=${{ format( '{0}.{1}', env.UTPLSQL_BUILD_VERSION, matrix.id ) }}
164+ -Dsonar.plsql.jdbc.url=${{ format( 'jdbc:oracle:thin:@//oracle:1521/{0}', env.ORACLE_SID ) }}
165+ -Dsonar.plsql.jdbc.driver.path=${{ format( '{0}/ojdbc8.jar', env.OJDBC_HOME ) }}
139166
140167 publish :
141168 name : Deploy documentation
0 commit comments