Skip to content

Commit a634dd5

Browse files
committed
update ci.yml to work with integration tests and use github repo secrets
1 parent 41438c1 commit a634dd5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ jobs:
4040
- name: Dotnet Pack
4141
run: pwsh pack.ps1
4242

43+
- name: Azure Login with OIDC
44+
uses: azure/login@v1
45+
with:
46+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
47+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
48+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
49+
50+
- name: Create Subscription Settings File
51+
run: |
52+
cat > ${{ github.workspace }}/tests/Integration/appsettings.Secrets.json <<EOF
53+
{
54+
"Success": true,
55+
"SubscriptionId": "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
56+
}
57+
EOF
58+
4359
- name: Dotnet Test
4460
run: pwsh test.ps1
4561

0 commit comments

Comments
 (0)