File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,17 +59,19 @@ jobs:
5959 image : ${{matrix.oracle-version}}
6060 env :
6161 ORACLE_PASSWORD : oracle
62- MATRIX_JOB_ID : ${{matrix.id}}
6362 credentials :
6463 username : ${{ secrets.DOCKER_USER }}
6564 password : ${{ secrets.DOCKER_PASSWORD }}
65+ volumes :
66+ - ${{github.workspace}}:/utPLSQL
6667 ports :
6768 - 1521:1521
6869 options : >-
6970 --health-cmd healthcheck.sh
7071 --health-interval 10s
7172 --health-timeout 5s
7273 --health-retries 10
74+ --name oracle
7375
7476 steps :
7577 - uses : actions/checkout@v2
@@ -142,6 +144,20 @@ jobs:
142144 id : run-tests
143145 run : bash test/run_tests.sh
144146
147+ # Needed to diagnose occasional failures of DB on test runs
148+ - name : Get ORACLE_BASE/diag data
149+ id : get-oracle-diag-data
150+ if : ${{ always() && steps.run-tests.outcome == 'failure' }}
151+ run : docker exec oracle bash -c "cp -r ${ORACLE_BASE}/diag /utPLSQL/database-diag"
152+ # Needed to diagnose occasional failures of DB on test runs
153+ - name : Upload ORACLE_BASE/diag data Artifact
154+ id : upload
155+ if : ${{ always() && steps.run-tests.outcome == 'failure' }}
156+ uses : actions/upload-artifact@v2
157+ with :
158+ name : my-artifact$-${{matrix.db_version_name}}
159+ path : ${{github.workspace}}/database-diag
160+
145161 - name : Validate utPLSQL reports format
146162 id : validate-reports-format
147163 run : bash .github/scripts/validate_report_files.sh
You can’t perform that action at this time.
0 commit comments