File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,41 +51,16 @@ jobs:
5151 java-version : ' 21'
5252 distribution : ' oracle'
5353
54- - name : Verify Java installation
55- run : |
56- java -version
57- echo "JAVA_HOME: $JAVA_HOME"
58-
5954 - name : Download and install SQLcl
6055 run : |
61- echo "Downloading SQLcl..."
6256 wget -O sqlcl.zip https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-25.2.0.184.2054.zip
6357 unzip -q sqlcl.zip
64- chmod +x sqlcl/bin/sql
6558 echo "$(pwd)/sqlcl/bin" >> $GITHUB_PATH
6659
6760 - name : Run database installation script
6861 run : |
69- echo "Executing install.sql script..."
7062 sql sys/oracle@localhost:1542/FREEPDB1 as sysdba @install.sql
7163
72- - name : Verify installation
73- run : |
74- echo "Verifying installation by looking for errors in install.log..."
75- if [ -f "install.log" ]; then
76- ora_errors=$(grep -c "ORA-" install.log || true)
77- if [ $ora_errors -gt 0 ]; then
78- echo "❌ Installation failed: Found $ora_errors errors in install.log:"
79- grep "ORA-" install.log
80- exit 1
81- else
82- echo "✅ Installation successful: No errors found in install.log"
83- fi
84- else
85- echo "❌ install.log file not found!"
86- exit 1
87- fi
88-
8964 - name : Prepare directory to be deployed to GitHub Pages
9065 if : always()
9166 run : |
You can’t perform that action at this time.
0 commit comments