Skip to content

Commit

Permalink
Fix command fdor Linux, downgrade pwsh on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricio-ESP committed Oct 25, 2024
1 parent 9ddc3c2 commit 508212a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,16 @@ jobs:
7z x ./artifacts/eim-${{ github.run_id }}-${{ matrix.os }}/eim.zip -otest-bin
# 7z x ./test-bin/eim.zip -otest-bin
- name: Set executable permissions (Windows)
- name: downgrade powershell version (Windows)
if: runner.os == 'Windows'
run: |
set "extractPath=C:\Program Files\PowerShell\7"
curl -sLO https://github.com/PowerShell/PowerShell/releases/download/v7.2.17/PowerShell-7.2.17-win-x64.zip
RMDIR "%extractPath%" /S /Q
7z x PowerShell-7.2.17-win-x64.zip -o"%extractPath%"
pwsh --version
- name: Print powershell and windows version (Windows)
if: runner.os == 'Windows'
run: |
$PSVersionTable
Expand Down
2 changes: 1 addition & 1 deletion tests/script/postInstall.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe("Check if IDF installation is functional", function () {

testRunner.sendInput(
os.platform() !== "win32"
? `cp -r ${process.env.IDF_PATH}/examples/get-started/hello_world .\r`
? `cp -r $IDF_PATH/examples/get-started/hello_world .\r`
: `xcopy /e /i $env:IDF_PATH\\examples\\get-started\\hello_world hello_world\r`
);
testRunner.sendInput("cd hello_world\r");
Expand Down

0 comments on commit 508212a

Please sign in to comment.