File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,10 +92,11 @@ jobs:
9292 - name : Test for node version
9393 shell : pwsh
9494 run : |
95- $image_node_version = (docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()
96- Write-Host "Expected: '${{ matrix.version }}', Got: '$image_node_version'"
97- if (22.0.7 -ne ${{ matrix.version }}) {
98- exit 1
95+ $image_node_version = ([System.Text.Encoding]::UTF8.GetString(([System.Text.Encoding]::UTF8.GetBytes((docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} node --print "process.versions.node").Trim()))))
96+ $expected_version = ([System.Text.Encoding]::UTF8.GetString(([System.Text.Encoding]::UTF8.GetBytes(${{ matrix.version }}))))
97+ Write-Host "Expected: '$expected_version', Got: '$image_node_version'"
98+ if ($image_node_version -ne $expected_version) {
99+ exit 1
99100 }
100101
101102 - name : Verify entrypoint runs regular, non-executable files with node
You can’t perform that action at this time.
0 commit comments