Skip to content

Commit 329f704

Browse files
committed
try oracle tests again
1 parent 5c00911 commit 329f704

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.github/workflows/dotnetpull.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ jobs:
3737
--health-timeout=5s
3838
--health-retries=5
3939
40-
# oracle:
41-
# image: gvenzl/oracle-xe:21.3.0-slim
42-
# ports:
43-
# - 1521:1521
44-
# env:
45-
# ORACLE_PASSWORD: testpass
46-
# options: >-
47-
# --health-cmd "echo 'exit' | sqlplus -L system/oracle@localhost/XEPDB1"
48-
# --health-interval=25s
49-
# --health-timeout=20s
50-
# --health-retries=20
40+
oracle:
41+
image: gvenzl/oracle-xe:21.3.0-slim
42+
ports:
43+
- 1521:1521
44+
env:
45+
ORACLE_PASSWORD: testpass
46+
options: >-
47+
--health-cmd "echo 'exit' | sqlplus -L system/oracle@localhost/XEPDB1"
48+
--health-interval=25s
49+
--health-timeout=20s
50+
--health-retries=20
5151
5252
mysql:
5353
image: mysql:8.0
@@ -79,20 +79,20 @@ jobs:
7979
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev
8080
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
8181
source ~/.bashrc
82-
# - name: Download and install Oracle SQLcl
83-
# run: |
84-
# curl -L -o sqlcl.zip https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip
85-
# unzip sqlcl.zip -d sqlcl
86-
# echo "$PWD/sqlcl/sqlcl/bin" >> $GITHUB_PATH
87-
# - name: Run SQL script with Oracle SQLcl
88-
# run: |
89-
# echo "create user test identified by test;" > setup.sql
90-
# echo "grant connect, resource to test;" >> setup.sql
91-
# sql /nolog <<EOF
92-
# connect system/testpass@//localhost:1521/XEPDB1
93-
# @setup.sql
94-
# exit
95-
# EOF
82+
- name: Download and install Oracle SQLcl
83+
run: |
84+
curl -L -o sqlcl.zip https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip
85+
unzip sqlcl.zip -d sqlcl
86+
echo "$PWD/sqlcl/sqlcl/bin" >> $GITHUB_PATH
87+
- name: Run SQL script with Oracle SQLcl
88+
run: |
89+
echo "create user test identified by test;" > setup.sql
90+
echo "grant connect, resource to test;" >> setup.sql
91+
sql /nolog <<EOF
92+
connect system/testpass@//localhost:1521/XEPDB1
93+
@setup.sql
94+
exit
95+
EOF
9696
- name: Create SQLServer database
9797
run: |
9898
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE [Whatever];"

0 commit comments

Comments
 (0)