From 70d07695b9203e9563d8ad9c6366d9102dd97e23 Mon Sep 17 00:00:00 2001 From: Joshua Harms Date: Tue, 21 Jan 2025 01:38:25 -0600 Subject: [PATCH] fix: generate appsettings.local.json before running integration test project --- .github/workflows/build-and-test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 87082496..7f2a7efc 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -114,6 +114,20 @@ jobs: - name: Checkout branch uses: actions/checkout@v4 + - name: Create ShopifySharp.Tests.Integration/appsettings.local.json + run: | + cat < ShopifySharp.Tests.Integration/appsettings.local.json + { + "ShopifySharp": { + "Credentials": { + "ShopDomain": "${{ secrets.SHOPIFYSHARP_MY_SHOPIFY_URL }}", + "AccessToken": "${{ secrets.SHOPIFYSHARP_ACCESS_TOKEN }}", + "ApiKey": "${{ secrets.SHOPIFYSHARP_API_KEY }}" + } + } + } + EOF + - name: Execute unit test script run: fish .github/scripts/test.fish shell: bash