Skip to content

Commit

Permalink
fixing file writing step
Browse files Browse the repository at this point in the history
  • Loading branch information
aasimkhan30 committed Aug 6, 2024
1 parent 0c63fe5 commit e50b14b
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,16 @@ jobs:

- name: Writing test environment config file
run: |
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
cat << 'EOF' > test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/SQLConnectionInstances.xml
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<Instances>
<Instance VersionKey=\"sqlOnPrem\">
<DataSource>localhost</DataSource>
<UserId>sa</UserId>
<Password></Password>
</Instance>
</Instances>" > test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/SQLConnectionInstances.xml
<DataSource>localhost</DataSource>
<UserId>sa</UserId>
<Password></Password>
</Instance>
</Instances>
EOF
- name: Setting Up Test Environment
run: dotnet run 'test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/Microsoft.SqlTools.ServiceLayer.TestEnvConfig.csproj' 'test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/SQLConnectionInstances.xml'
Expand All @@ -77,3 +79,10 @@ jobs:

- name: Running Integration Tests
run: dotnet test '**/Microsoft.SqlTools.ServiceLayer.IntegrationTests.csproj' --no-build


cat << 'EOF' > myfile.txt
This is line 1
This is line 2
This is line 3
EOF

0 comments on commit e50b14b

Please sign in to comment.