Skip to content

Initial md2pdf CLI

Initial md2pdf CLI #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: ${{ matrix.os }} / Node ${{ matrix.node }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
node: [20, 22]
env:
MD2PDF_SKIP_BROWSER_INSTALL: "1"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Install Playwright Chromium on Linux
if: runner.os == 'Linux'
run: npx playwright install --with-deps chromium
- name: Install Playwright Chromium
if: runner.os != 'Linux'
run: npx playwright install chromium
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Smoke convert
run: node dist/cli/index.js examples/simple.md -o test/output/ci-smoke.pdf --output-html