Skip to content

Changed ci to use windows #32

Changed ci to use windows

Changed ci to use windows #32

name: Integration Tests
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test-with-zephyr:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
- name: Add Winget to PATH
shell: powershell
run: |
$wingetPath = (Get-ChildItem -Path "$env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller*_x64*\winget.exe").DirectoryName
if ($wingetPath) {
echo "::add-path::$wingetPath"
} else {
Write-Error "Winget path not found!"
}
- name: Install system dependencies
shell: powershell
run: |
winget install Kitware.CMake Ninja-build.Ninja oss-winget.gperf python Git.Git oss-winget.dtc wget 7zip.7zip
- name: Install dependencies
run: npm ci
- name: Compile TypeScript
run: npm run test-compile
- name: Run linting
run: npm run lint
- name: Run real integration tests
run: node scripts/run-integration-tests.js
env:
NODE_ENV: test