Skip to content

add support for better named envvars #27

add support for better named envvars

add support for better named envvars #27

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-12
- ubuntu-22.04
- windows-2022
node-version:
- '16'
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v3
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install Yarn dependencies
run: yarn install --prefer-offline --frozen-lockfile
# Run a few iterations of leia tests
- name: Test macOS shells from
if: ${{ runner.os == 'macOS' }}
run: |
yarn leia examples/basic-example.md --debug
yarn leia examples/basic-example.md --shell bash --debug
yarn leia examples/basic-example.md --shell zsh --debug
yarn leia examples/basic-example.md --shell sh --debug
- name: Test Linux shells
if: ${{ runner.os == 'Linux' }}
run: |
yarn leia examples/basic-example.md --debug
yarn leia examples/basic-example.md --shell bash --debug
yarn leia examples/basic-example.md --shell sh --debug
- name: Test Windows BASH
if: ${{ runner.os == 'Windows' }}
shell: bash
run: yarn leia examples/basic-example.md --debug
- name: Test Windows CMD
if: ${{ runner.os == 'Windows' }}
run: yarn leia examples/basic-cmd-example.md --debug