Skip to content

fix(cli): make the CLI work on Windows #293

fix(cli): make the CLI work on Windows

fix(cli): make the CLI work on Windows #293

Workflow file for this run

name: CLI
on:
push:
branches:
- main
- build/v2
pull_request:
jobs:
test:
name: 🧪 Test the CLI on ${{ matrix.runtime }} under ${{ matrix.os }} using ${{ matrix.pm }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
experimental: [false]
runtime: [node, deno, bun]
pm: ["", pnpm, yarn]
steps:
- name: 🚚 Checkout repository
uses: actions/checkout@v5
- name: 🔥 Remove lockfile
run: rm pnpm-lock.yaml
- name: 📦️ Install Panam
run: npm i -g panam-cli
- name: Setup Test Environment
uses: siguici/setup-js@v1
with:
runtime: ${{ matrix.runtime }}
# Pin pnpm to the repo's `packageManager` version. Left unpinned,
# setup-js resolves `latest`, then tries `pnpm install -g pnpm@<latest>`
# against the action's PNPM_HOME and fails with
# "The configured global bin directory ... is not in PATH".
pm: ${{ matrix.pm == 'pnpm' && 'pnpm@10.33.2' || matrix.pm }}
scripts: build,test
cwd: ./libs/create-qwikdev-astro