Skip to content

Changed ci to use windows #28

Changed ci to use windows

Changed ci to use windows #28

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: Ensure WinGet is available
shell: pwsh
run: |
if (-not (Get-Command winget -ErrorAction SilentlyContinue)) {
Write-Host "WinGet not found, installing..."
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile winget.msixbundle
Add-AppxPackage winget.msixbundle
Remove-Item winget.msixbundle
} else {
Write-Host "WinGet is already installed."
}
- name: Install system dependencies
run: |
winget install Kitware.CMake Ninja-build.Ninja oss-winget.gperf python Git.Git oss-winget.dtc wget 7zip.7zip
shell: powershell
- 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