Skip to content

Repair shell detection and complete core parser and finder coverage #88

Repair shell detection and complete core parser and finder coverage

Repair shell detection and complete core parser and finder coverage #88

Workflow file for this run

name: Run Shell Tests
on:
pull_request:
jobs:
shell-tests:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
strategy:
fail-fast: false
matrix:
os:
- macos-26
- ubuntu-24.04
- windows-2025
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v7
- name: Install Node from .node-version
uses: actions/setup-node@v7
with:
node-version-file: '.node-version'
cache: npm
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile
# Run a few iterations of leia tests
- name: Test macOS shells from
if: ${{ runner.os == 'macOS' }}
run: |
npx leia examples/basic-example.md --shell bash --debug
npx leia examples/basic-example.md --shell zsh --debug
npx leia examples/basic-example.md --shell sh --debug
- name: Test Linux shells
if: ${{ runner.os == 'Linux' }}
run: |
npx leia examples/basic-example.md --shell bash --debug
npx leia examples/basic-example.md --shell sh --debug
- name: Test Windows BASH
if: ${{ runner.os == 'Windows' }}
shell: bash
run: |
npx leia examples/basic-cmd-example.md --shell cmd --debug
npx leia examples/basic-pwsh-example.md --shell pwsh --debug
npx leia examples/basic-pwsh-example.md --shell powershell --debug
npx leia examples/basic-pwsh-example.md --shell powershell --stdin --debug
- name: Test Windows SHELLS
if: ${{ runner.os == 'Windows' }}
run: |
npx leia examples/basic-cmd-example.md --shell cmd --debug
npx leia examples/basic-pwsh-example.md --shell pwsh --debug
npx leia examples/basic-pwsh-example.md --shell powershell --debug
npx leia examples/basic-pwsh-example.md --shell powershell --stdin --debug