fix(cli): make the CLI work on Windows #293
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |