Skip to content

Commit a3d73b4

Browse files
authored
Merge pull request #22 from openimis/bulk-update-openmis-module-test.yml
bulk-update-openmis-module-test.yml
2 parents 42fde5c + 41da3dd commit a3d73b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/openmis-module-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
python-version: 3.8
3131
- name: install linux packages
3232
run: |
33-
wget https://raw.githubusercontent.com/openimis/database_ms_sqlserver/main/Empty%20databases/openIMIS_ONLINE.sql -O openIMIS_ONLINE.sql
34-
wget https://raw.githubusercontent.com/openimis/database_ms_sqlserver/main/Demo%20database/openIMIS_demo_ONLINE.sql -O openIMIS_demo_ONLINE.sql
33+
git clone --depth 1 --branch develop https://github.com/openimis/database_ms_sqlserver.git ./sql
34+
cd sql/ && bash concatenate_files.sh && cd ..
3535
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
3636
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
3737
sudo apt-get update
@@ -67,8 +67,7 @@ jobs:
6767
run: |
6868
/opt/mssql-tools/bin/sqlcmd -S localhost,1433 -U SA -P $SA_PASSWORD -Q 'DROP DATABASE IF EXISTS imis'
6969
/opt/mssql-tools/bin/sqlcmd -S localhost,1433 -U SA -P $SA_PASSWORD -Q 'CREATE DATABASE imis'
70-
/opt/mssql-tools/bin/sqlcmd -S localhost,1433 -U SA -P $SA_PASSWORD -d imis -i openIMIS_ONLINE.sql | grep . | uniq -c
71-
/opt/mssql-tools/bin/sqlcmd -S localhost,1433 -U SA -P $SA_PASSWORD -d imis -i openIMIS_demo_ONLINE.sql | grep . | uniq -c
70+
/opt/mssql-tools/bin/sqlcmd -S localhost,1433 -U SA -P $SA_PASSWORD -d imis -i sql/output/fullDemoDatabase.sql | grep . | uniq -c
7271
env:
7372
SA_PASSWORD: GitHub999
7473
ACCEPT_EULA: Y
@@ -98,3 +97,4 @@ jobs:
9897
#DEV_SERVER: true
9998
SITE_ROOT: api
10099
REMOTE_USER_AUTHENTICATION: True
100+

0 commit comments

Comments
 (0)