You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: Test environment variable ENV_CONTAINER_ID
60
59
run: echo $ENV_CONTAINER_ID
61
-
62
-
#- name: Print environment variables
63
-
# run: env
64
60
65
-
- name: Restore AdventureWorks2017
61
+
- name: Sleep for 20s
62
+
uses: juliangruber/sleep-action@v1
63
+
with:
64
+
time: 20s
65
+
66
+
#---------- 3. AdventureWorks database recovery
67
+
68
+
- name: Restore AdventureWorks
66
69
run: docker exec -i $ENV_CONTAINER_ID /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "3uuiCaKxfbForrK" -Q "RESTORE DATABASE [AdventureWorks2017] FROM DISK = '/adventureworks.bak' WITH MOVE 'AdventureWorks2017' TO '/var/opt/mssql/data/AdventureWorks.mdf', MOVE 'AdventureWorks2017_log' TO '/var/opt/mssql/data/AdventureWorks_log.ldf'"
67
70
68
71
- name: Get the database list
69
72
run: docker exec -i $ENV_CONTAINER_ID /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "3uuiCaKxfbForrK" -Q "SELECT Name FROM sys.databases"
70
73
74
+
#---------- 4. Installation of the tSQLt framework
75
+
76
+
- uses: actions/checkout@v3.5.2
77
+
71
78
- name: Install tSQLt with SQL auth on AdventureWorks2017
72
79
uses: lowlydba/tsqlt-installer@v1
73
80
with:
74
81
sql-instance: localhost
75
82
database: AdventureWorks2017
76
83
version: latest
77
84
user: sa
78
-
password: 3uuiCaKxfbForrK
79
-
85
+
password: 3uuiCaKxfbForrK
86
+
87
+
#---------- 5. Creating the database objects to be tested (SUT)
0 commit comments