skillhub/.github/workflows/pr-scripts.yml
千乘妍 (Xiaoyaner) 356a7e9366 Test analytics runtime isolation and idempotence
Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>
2026-11-03 00:49:25 +08:00

74 lines
2.7 KiB
YAML

name: PR Scripts
on:
pull_request:
paths:
- 'scripts/**'
- 'scanner/**'
- 'docker-compose.yml'
- '.env.release.example'
- '.env.release.draft'
- 'compose.release.yml'
- 'compose.release.analytics.yml'
- 'compose.analytics-umami.yml'
- 'compose.storage.*.yml'
- 'deploy/storage/**'
- 'deploy/runtime-mirror-images.txt'
- 'deploy/k8s/base/configmap.yaml'
- 'deploy/k8s/base/scanner-deployment.yaml'
- 'charts/skillhub/values.yaml'
- 'charts/skillhub/values.schema.json'
- 'charts/skillhub/templates/scanner-deployment.yaml'
- 'server/Dockerfile'
- 'Makefile'
- 'web/Dockerfile'
- 'web/nginx.conf.template'
- 'web/docker-entrypoint.d/**'
- '.github/workflows/pr-cli.yml'
- '.github/workflows/deepwiki.yml'
- '.github/workflows/pr-e2e.yml'
- '.github/workflows/pr-helm-chart.yml'
- '.github/workflows/pr-tests.yml'
- '.github/workflows/publish-chart.yml'
- '.github/workflows/publish-images.yml'
- '.github/workflows/security.yml'
- '.github/workflows/pr-scripts.yml'
- '.github/workflows/migration-preflight.yml'
- '**/*.py'
permissions:
contents: read
jobs:
scripts-tests:
name: Script Regression Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: '21'
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: python -m unittest discover -s scanner/tests -p 'test_*.py'
- run: bash scripts/tests/publish-cli-test.sh
- run: bash scripts/tests/runtime-secret-test.sh
- run: bash scripts/tests/runtime-analytics-test.sh
- run: bash scripts/tests/validate-release-config-test.sh
- run: bash scripts/tests/storage-compose-test.sh
- run: bash scripts/tests/storage-compose-render-test.sh
- run: bash scripts/tests/storage-diagnostics-test.sh
- run: bash scripts/tests/mirror-storage-images-test.sh
- run: bash scripts/tests/nginx-forwarded-proto-test.sh
- run: bash scripts/tests/smoke-test-admin-mode-test.sh
- run: bash scripts/tests/web-base-path-routing-test.sh
- run: bash scripts/tests/web-base-path-nginx-smoke-test.sh
- run: bash scripts/tests/dev-web-host-test.sh
- run: bash scripts/tests/server-image-compat-test.sh
- run: bash scripts/tests/workflow-security-test.sh
- run: python3 -m unittest discover -s scripts/tests -p 'test_deepwiki_workflow.py' -v
- run: python3 -m unittest discover -s scripts/tests -p 'test_migration_preflight.py' -v