Skip to content

Commit 2587bb3

Browse files
committed
Add CI workflow to run test suite on push to test_dll_issue branch
1 parent 9b46834 commit 2587bb3

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,23 @@ jobs:
5353
5454
- name: Generate config files from secrets
5555
shell: powershell
56+
env:
57+
DB2_DATABASE: ${{ secrets.DB2_DATABASE }}
58+
DB2_USER: ${{ secrets.DB2_USER }}
59+
DB2_PASSWD: ${{ secrets.DB2_PASSWD }}
60+
DB2_HOSTNAME: ${{ secrets.DB2_HOSTNAME }}
61+
DB2_PORT: ${{ secrets.DB2_PORT }}
5662
run: |
5763
Copy-Item config.py.sample config.py
58-
@"
59-
{
60-
"database" : "${{ secrets.DB2_DATABASE }}",
61-
"user" : "${{ secrets.DB2_USER }}",
62-
"password" : "${{ secrets.DB2_PASSWD }}",
63-
"hostname" : "${{ secrets.DB2_HOSTNAME }}",
64-
"port" : ${{ secrets.DB2_PORT }}
65-
}
66-
"@ | Set-Content -Path config.json -Encoding UTF8
64+
$json = @{
65+
database = $env:DB2_DATABASE
66+
user = $env:DB2_USER
67+
password = $env:DB2_PASSWD
68+
hostname = $env:DB2_HOSTNAME
69+
port = [int]$env:DB2_PORT
70+
} | ConvertTo-Json
71+
$json | Set-Content -Path config.json -Encoding UTF8
72+
Write-Host "config.json created"
6773
6874
- name: Write db2dsdriver.cfg into clidriver/cfg
6975
shell: powershell

0 commit comments

Comments
 (0)