Skip to content

Commit

Permalink
test(e2e): fix encoding issue package.json
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Villanueva <[email protected]>
  • Loading branch information
danivilla9 committed Dec 11, 2024
1 parent d753aa6 commit 45e9226
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,11 @@ jobs:
Write-Host "Version of @podman-desktop/tests-playwright to be used: $version"
$packageJson = Get-Content -Raw -Path package.json | ConvertFrom-Json
$packageJson.devDependencies."@podman-desktop/tests-playwright" = $version
$packageJson | ConvertTo-Json -Depth 100 | Set-Content -Path package.json -Encoding utf8
$jsonString = $packageJson | ConvertTo-Json -Depth 100
# Write the content without BOM using -Force and [System.Text.Encoding]::UTF8
[System.IO.File]::WriteAllText('package.json', $jsonString, [System.Text.Encoding]::UTF8)
shell: powershell


- name: Ensure getting current HEAD version of the test framework (ubuntu)
if: matrix.os == 'ubuntu-24.04'
Expand Down

0 comments on commit 45e9226

Please sign in to comment.