add support for better named envvars #36
Workflow file for this run
This file contains 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: Run Leia Tests | |
on: | |
pull_request: | |
jobs: | |
leia-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: Run Leia tests | |
shell: bash | |
run: | | |
# Try a basic example | |
yarn leia examples/basic-example.md --debug | |
# Try globs and ignores | |
yarn leia "examples/**/*.md" -i "examples/basic-cmd-example.md" -i "examples/exclude-example/**/*.md" -i "examples/stdin-example.md" -i "examples/custom-headers.md" -i "examples/environment.md" | |
# Try custom headers | |
yarn leia examples/custom-headers.md -s Hello -t Sup -c Goodbye | |
# Try all other options, including legacy ones | |
yarn leia examples/basic-example.md --retry 2 --split-file --stdin --spawn | |
# Try a comma separated list of headers | |
yarn leia examples/custom-headers.md -s Blue,No,Yellow,Hello -t Sup -c Goodbye | |
# Assess envvars | |
yarn leia examples/environment.md examples/basic-example.md --retry 4 | |