convertor/.github/workflows/run-bun-test.yml
Your Name a9f6e1de6f ci: add E2E tests to release workflow
- Add E2E converter tests in Docker container (verify-image job)
  - Inkscape: SVG → PNG
  - Pandoc: Markdown → HTML
  - LibreOffice: TXT → PDF
  - FFmpeg: Audio generation
  - ImageMagick: PNG → JPEG
  - API healthcheck endpoint

- Add cleanup step for verification containers
- Update verification summary to include E2E results
- Install pandoc and imagemagick in run-bun-test workflow for E2E tests
2026-01-23 00:18:03 +08:00

39 lines
781 B
YAML

name: Check Tests
permissions:
contents: read
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.2
# 安裝 E2E 測試所需的轉換工具
- name: Install conversion tools for E2E tests
run: |
sudo apt-get update
sudo apt-get install -y pandoc imagemagick
- name: Install dependencies
run: bun install
- name: Run tests
run: bun test