Skip to content

Commit 8a1cc39

Browse files
committed
work on oracle
1 parent 329f704 commit 8a1cc39

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

.github/workflows/dotnetpull.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,18 @@ jobs:
3838
--health-retries=5
3939
4040
oracle:
41-
image: gvenzl/oracle-xe:21.3.0-slim
41+
image: gvenzl/oracle-free:latest
4242
ports:
4343
- 1521:1521
4444
env:
45-
ORACLE_PASSWORD: testpass
45+
ORACLE_RANDOM_PASSWORD: true
46+
APP_USER: test
47+
APP_USER_PASSWORD: test
4648
options: >-
47-
--health-cmd "echo 'exit' | sqlplus -L system/oracle@localhost/XEPDB1"
48-
--health-interval=25s
49-
--health-timeout=20s
50-
--health-retries=20
49+
--health-cmd healthcheck.sh
50+
--health-interval 10s
51+
--health-timeout 5s
52+
--health-retries 10
5153
5254
mysql:
5355
image: mysql:8.0
@@ -79,20 +81,20 @@ jobs:
7981
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev
8082
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
8183
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
84+
# - name: Download and install Oracle SQLcl
85+
# run: |
86+
# curl -L -o sqlcl.zip https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip
87+
# unzip sqlcl.zip -d sqlcl
88+
# echo "$PWD/sqlcl/sqlcl/bin" >> $GITHUB_PATH
89+
# - name: Run SQL script with Oracle SQLcl
90+
# run: |
91+
# echo "create user test identified by test;" > setup.sql
92+
# echo "grant connect, resource to test;" >> setup.sql
93+
# sql /nolog <<EOF
94+
# connect system/testpass@//localhost:1521/XEPDB1
95+
# @setup.sql
96+
# exit
97+
# EOF
9698
- name: Create SQLServer database
9799
run: |
98100
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE [Whatever];"

src/Migrator.Tests/appsettings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"Id": "PostgreSQL",
1313
"ConnectionString": "Server=localhost;Port=5432;Database=testdb;User Id=testuser;Password=testpass;"
1414
},
15-
//{
16-
// "Id": "Oracle",
17-
// "ConnectionString": "Data Source=//localhost:1521/XEPDB1;User Id=test;Password=test;"
18-
//},
15+
{
16+
"Id": "Oracle",
17+
"ConnectionString": "Data Source=//localhost:1521/XEPDB1;User Id=test;Password=test;"
18+
},
1919
{
2020
"Id": "MySQL",
2121
"ConnectionString": "Server=127.0.0.1;Port=3306;Database=testdb;User Id=testuser;Password=testpass;"

0 commit comments

Comments
 (0)