Skip to content

Commit

Permalink
test(e2e): step to get latest version of @podman-desktop test framework
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Villanueva <[email protected]>
  • Loading branch information
danivilla9 committed Jan 14, 2025
1 parent 7d97c67 commit c21e307
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,25 @@ jobs:
jq --arg version "$version" '.devDependencies."@podman-desktop/tests-playwright" = $version' package.json > package.json_tmp && mv package.json_tmp package.json
shell: bash

- name: Ensure getting current HEAD version of the test framework (Windows)
if: matrix.os == 'windows-2022'
working-directory: ./crc-extension
run: |
# workaround for https://github.com/containers/podman-desktop-extension-bootc/issues/712
# Install scoop installer
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
scoop --version
# Install jq using scoop
scoop install jq
# Fetch the version of the npm package
$version = npm view @podman-desktop/tests-playwright@next version
Write-Host "Version of @podman-desktop/tests-playwright to be used: $version"
# Update package.json using jq
jq --arg version "$version" '.devDependencies."@podman-desktop/tests-playwright" = $version' package.json > package.json_tmp
# Replace the old package.json with the updated one
Move-Item -Path package.json_tmp -Destination package.json -Force
shell: pwsh

- name: Install CRC extension dependencies
working-directory: ./crc-extension
run: yarn install --check-files
Expand Down

0 comments on commit c21e307

Please sign in to comment.