Skip to content

0.6.1

0.6.1 #81

Workflow file for this run

name: E2E Gate
on:
pull_request:
branches:
- master
paths:
- "apps/frontend/**"
- "apps/backend/**"
- "tests/scenario/**"
- "vitest.config.ts"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- ".node-version"
- ".npmrc"
- ".github/workflows/e2e-gate.yml"
workflow_dispatch:
permissions:
contents: read
packages: read
jobs:
e2e-gate:
runs-on: ubuntu-latest
timeout-minutes: 30
services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres -d postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN || github.token }}
SCENARIO_DATABASE_ADMIN_URL: postgresql://postgres:postgres@localhost:5432/postgres
VITE_WECHAT_ABILITY_MOCKING_ENABLED: "true"
VITE_WECHAT_MINIPROGRAM_WEBVIEW_MOCKING_ENABLED: "false"
WECHAT_ABILITY_MOCKING_ENABLED: "true"
WECHAT_OFFICIAL_ACCOUNT_APP_ID: wx-scenario-mock
WECHAT_OFFICIAL_ACCOUNT_APP_SECRET: scenario-wechat-secret
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: .node-version
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright Chromium
run: pnpm exec playwright install --with-deps chromium
- name: Run system scenario tests
run: pnpm test:scenario:system