mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-14 13:13:47 +08:00
test(e2e): phase-2 add office and zip smoke coverage
This commit is contained in:
13
.github/workflows/pr-e2e-mvp.yml
vendored
13
.github/workflows/pr-e2e-mvp.yml
vendored
@@ -31,10 +31,15 @@ jobs:
|
||||
cache: 'npm'
|
||||
cache-dependency-path: tests/e2e/package-lock.json
|
||||
|
||||
- name: Install LibreOffice
|
||||
- name: Install LibreOffice + zip
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libreoffice
|
||||
sudo apt-get install -y libreoffice zip
|
||||
|
||||
- name: Setup Python deps for office fixtures
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
pip3 install python-docx openpyxl python-pptx
|
||||
|
||||
- name: Build kkFileView
|
||||
run: mvn -q -pl server -DskipTests package
|
||||
@@ -46,7 +51,9 @@ jobs:
|
||||
npx playwright install --with-deps chromium
|
||||
|
||||
- name: Generate fixtures
|
||||
run: node tests/e2e/scripts/generate-fixtures.mjs
|
||||
run: |
|
||||
node tests/e2e/scripts/generate-fixtures.mjs
|
||||
python3 tests/e2e/scripts/generate-office-fixtures.py
|
||||
|
||||
- name: Start fixture server
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user