Skip to content

Commit 9b30962

Browse files
committed
Changed ci to use windows
1 parent 48df8bc commit 9b30962

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/integration-tests.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
test-with-zephyr:
11-
runs-on: ubuntu-latest
11+
runs-on: windows-latest
1212

1313
steps:
1414
- uses: actions/checkout@v4
@@ -19,12 +19,20 @@ jobs:
1919
node-version: "18"
2020
cache: "npm"
2121

22+
- name: Add Winget to PATH
23+
shell: powershell
24+
run: |
25+
$wingetPath = (Get-ChildItem -Path "$env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller*_x64*\winget.exe").DirectoryName
26+
if ($wingetPath) {
27+
echo "::add-path::$wingetPath"
28+
} else {
29+
Write-Error "Winget path not found!"
30+
}
31+
2232
- name: Install system dependencies
33+
shell: powershell
2334
run: |
24-
sudo apt-get update
25-
sudo apt-get install -y python3-pip python3-venv cmake ninja-build gperf \
26-
ccache dfu-util device-tree-compiler wget file make gcc gcc-multilib \
27-
g++-multilib libsdl2-dev libmagic1
35+
winget install Kitware.CMake Ninja-build.Ninja oss-winget.gperf python Git.Git oss-winget.dtc wget 7zip.7zip
2836
2937
- name: Install dependencies
3038
run: npm ci
@@ -36,8 +44,6 @@ jobs:
3644
run: npm run lint
3745

3846
- name: Run real integration tests
39-
run: |
40-
xvfb-run -a node scripts/run-integration-tests.js
47+
run: node scripts/run-integration-tests.js
4148
env:
4249
NODE_ENV: test
43-
ZEPHYR_BASE: /tmp/zephyr

0 commit comments

Comments
 (0)