diff --git a/.github/workflows/e2e-main.yml b/.github/workflows/e2e-main.yml index 05854d5..58495c5 100644 --- a/.github/workflows/e2e-main.yml +++ b/.github/workflows/e2e-main.yml @@ -103,6 +103,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