Repository navigation
v0.4.3 发版修复与真实场景回归 #2482
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: e2e | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main, master] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: e2e-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| working-directory: local | |
| jobs: | |
| e2e: | |
| name: e2e (${{ matrix.os }}, python ${{ matrix.python-version }}, node ${{ matrix.node-version }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # ubuntu-latest is Ubuntu 26.04, which has no Python 3.8 build. | |
| - {os: ubuntu-24.04, python-version: "3.8", node-version: "22"} | |
| - {os: ubuntu-latest, python-version: "3.12", node-version: "22"} | |
| - {os: ubuntu-latest, python-version: "3.12", node-version: "20"} | |
| - {os: macos-latest, python-version: "3.12", node-version: "22"} | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - uses: actions/setup-python@v5.6.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/setup-node@v7.1.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: python3 -m pip install pyyaml==6.0.3 | |
| - name: Run E2E suite (packaged CLI, fake host Agent, no API keys) | |
| run: bash scripts/e2e.sh | |
| e2e-browser: | |
| name: e2e-browser (dashboard in Chromium) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - uses: actions/setup-python@v5.6.0 | |
| with: | |
| python-version: "3.12" | |
| - uses: actions/setup-node@v7.1.0 | |
| with: | |
| node-version: "22" | |
| - name: Install Playwright | |
| run: | | |
| # 1.55 has no Chromium build for Ubuntu 26.04. 1.64.1 matches | |
| # e2e/package.json, which already installs on that image. | |
| python3 -m pip install pyyaml==6.0.3 playwright==1.64.1 | |
| bash ../scripts/install-playwright-deps.sh python3 -m playwright | |
| - name: Render the observability dashboard | |
| env: | |
| LOOPFORGE_E2E_BROWSER: "1" | |
| LOOPFORGE_E2E_ARTIFACTS: ${{ runner.temp }}/dashboard-screenshots | |
| run: bash scripts/e2e.sh -k DashboardBrowserE2E | |
| - name: Upload dashboard screenshots | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: dashboard-screenshots | |
| path: ${{ runner.temp }}/dashboard-screenshots | |
| if-no-files-found: ignore | |
| e2e-gate: | |
| # Single stable check name to mark as required in branch protection. | |
| name: e2e-required | |
| if: always() | |
| needs: [e2e, e2e-browser] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Require every E2E job to pass | |
| working-directory: ${{ runner.temp }} | |
| run: | | |
| if [[ "${{ needs.e2e.result }}" != "success" || "${{ needs.e2e-browser.result }}" != "success" ]]; then | |
| echo "e2e=${{ needs.e2e.result }} e2e-browser=${{ needs.e2e-browser.result }}" >&2 | |
| exit 1 | |
| fi |