feat: support template selection in Markdown front matter #12
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest, ubuntu-24.04-arm] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | |
| - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm test | |
| - name: Select system Chrome for Linux x64 | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| browser_path="$(command -v google-chrome)" | |
| test -n "$browser_path" | |
| echo "PFPDF_BROWSER_PATH=$browser_path" >> "$GITHUB_ENV" | |
| - name: Install Chromium for Linux Arm64 | |
| if: matrix.os == 'ubuntu-24.04-arm' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y chromium-browser | |
| browser_path="$(command -v chromium-browser || command -v chromium)" | |
| test -n "$browser_path" | |
| echo "PFPDF_BROWSER_PATH=$browser_path" >> "$GITHUB_ENV" | |
| - name: PDF smoke test | |
| run: npm run test:e2e | |
| env: | |
| SOURCE_DATE_EPOCH: 1750000000 | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | |
| - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - name: Select system Chrome | |
| run: | | |
| browser_path="$(command -v google-chrome)" | |
| test -n "$browser_path" | |
| echo "PFPDF_BROWSER_PATH=$browser_path" >> "$GITHUB_ENV" | |
| - run: make docs-release docs-template-samples | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: docs-template-samples | |
| path: build/docs/templates/*/sample.pdf | |
| retention-days: 7 |