Skip to content

Commit

Permalink
Merge pull request #1007 from amvanbaren/test-smoketest
Browse files Browse the repository at this point in the history
Compare string literals
  • Loading branch information
amvanbaren authored Oct 2, 2024
2 parents 9349781 + 3623d1f commit 9b18c76
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}')

0 comments on commit 9b18c76

Please sign in to comment.