Merge pull request #372 from ipnet-mesh/chore/ci-e2e-and-report-artifacts

Add Playwright e2e job to CI and upload test report artifacts
This commit is contained in:
JingleManSweep authored and GitHub committed 2026-08-30 11:05:35 +01:00
commit c085e124eb
3 files changed
+69 -1

No files matched your search

+66
View File
@@ -67,6 +67,14 @@ jobs:
- name: Unit tests
run: npm run test:frontend
- name: Upload test results
uses: actions/upload-artifact@v7
if: always()
with:
name: vitest-results
path: vitest-junit.xml
retention-days: 14
- name: Build
run: npm run build
@@ -109,6 +117,16 @@ jobs:
run: |
pytest -nauto --cov=meshcore_hub --cov-report=xml --cov-report=term-missing --junitxml=junit.xml -o junit_family=legacy
- name: Upload test results
uses: actions/upload-artifact@v7
if: always()
with:
name: pytest-results
path: |
junit.xml
coverage.xml
retention-days: 14
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
if: always()
@@ -125,6 +143,54 @@ jobs:
report_type: test_results
token: ${{ secrets.CODECOV_TOKEN }}
e2e:
name: E2E (Playwright)
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version-file: ".python-version"
- name: Set up Node
uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- name: Install frontend deps
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Set up Python env for mint_session.py
run: |
python -m venv .venv
.venv/bin/pip install itsdangerous
- name: Build e2e stack
run: docker compose -f e2e/docker-compose.test.yml build
- name: Start e2e stack
run: docker compose -f e2e/docker-compose.test.yml up -d --wait
- name: Run E2E tests
run: npm run test:e2e
- name: Upload Playwright report
uses: actions/upload-artifact@v7
if: always()
with:
name: playwright-report
path: |
e2e/playwright-report/
e2e/test-results/
retention-days: 14
build:
name: Build Package
runs-on: ubuntu-latest
+2
View File
@@ -58,6 +58,8 @@ htmlcov/
.coverage.*
.cache
nosetests.xml
junit.xml
vitest-junit.xml
coverage.xml
*.cover
*.py.cover
+1 -1
View File
@@ -7,7 +7,7 @@
"scripts": {
"build": "node build.js",
"dev": "vite --config vite.config.ts",
"test:frontend": "vitest run",
"test:frontend": "vitest run --reporter=default --reporter=junit --outputFile.junit=vitest-junit.xml",
"typecheck": "tsc --noEmit",
"test:e2e": "playwright test --config=e2e/playwright.config.ts",
"typecheck:e2e": "tsc -p e2e/tsconfig.json --noEmit"