From 3623d1f91c59086920c5a05443e30994e1a0f265 Mon Sep 17 00:00:00 2001 From: amvanbaren Date: Wed, 2 Oct 2024 20:29:48 +0300 Subject: [PATCH] Compare string literals --- .github/workflows/smoketest.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index 0ea8e65a..09e4b6cc 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -49,12 +49,18 @@ jobs: echo "read version: ${{ steps.read_version.outputs.version }}" echo "is_version=${{ steps.running_version.outputs.status == 200 && fromJson(steps.running_version.outputs.response).version == steps.read_version.outputs.version }}" >> "$GITHUB_OUTPUT" - name: Run Playwright tests - if: steps.check_version.outputs.is_version == true + if: steps.check_version.outputs.is_version == 'true' working-directory: ./openvsx/webui run: yarn smoke-tests - uses: actions/upload-artifact@v4 - if: steps.check_version.outputs.is_version == true + if: steps.check_version.outputs.is_version == 'true' with: name: playwright-report path: openvsx/webui/playwright-report/ retention-days: 30 + - name: Fail smoke test + if: steps.check_version.outputs.is_version != 'true' + uses: actions/github-script@v7 + with: + script: | + core.setFailed('Deployed version is not ${{ steps.read_version.outputs.version }}')