From 0640790a2c57f4b4128c9c9a768e69aeff9fb09b Mon Sep 17 00:00:00 2001 From: nenad0707 Date: Mon, 18 Mar 2024 23:22:19 +0100 Subject: [PATCH] Refactor smoke test script in workflow.yml --- .github/workflows/workflow.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 071e583..e385555 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -88,11 +88,8 @@ jobs: steps: - uses: actions/checkout@v3 - run: | - $container = New-PesterContainer ` - -Path 'Website.Tests.ps1' ` - -Data @{ HostName = '${{needs.deploy.outputs.appServiceDefaultHostName}}' } Invoke-Pester ` - -Container $container ` - -CI + -Script @{ Path = 'Website.Tests.ps1'; Parameters = @{ HostName = '${{needs.deploy.outputs.appServiceDefaultHostName}}' } } ` + -CI name: Run smoke tests shell: pwsh