70bf21e064
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
name: Local Explorer UI E2E
|
|
|
|
on:
|
|
merge_group:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
# We run `playwright install` manually instead
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
|
|
|
|
jobs:
|
|
test:
|
|
name: Local Explorer UI E2E
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.head_ref != 'changeset-release/main' }}
|
|
timeout-minutes: 30
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
|
|
id: changes
|
|
with:
|
|
filters: |
|
|
relevant:
|
|
- 'packages/local-explorer-ui/**'
|
|
- 'packages/miniflare/src/workers/local-explorer/**'
|
|
- 'fixtures/worker-with-resources/**'
|
|
- 'fixtures/shared/**'
|
|
|
|
- name: Install Dependencies
|
|
if: steps.changes.outputs.relevant == 'true'
|
|
uses: ./.github/actions/install-dependencies
|
|
with:
|
|
turbo-api: ${{ secrets.TURBO_API }}
|
|
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
|
|
turbo-team: ${{ secrets.TURBO_TEAM }}
|
|
turbo-token: ${{ secrets.TURBO_TOKEN }}
|
|
|
|
- name: Install Playwright
|
|
if: steps.changes.outputs.relevant == 'true'
|
|
run: pnpm --filter @cloudflare/local-explorer-ui playwright:install
|
|
|
|
- name: Build wrangler
|
|
if: steps.changes.outputs.relevant == 'true'
|
|
run: pnpm turbo build --filter wrangler
|
|
|
|
- name: Run Local Explorer UI E2E tests
|
|
if: steps.changes.outputs.relevant == 'true'
|
|
run: pnpm test:e2e -F @cloudflare/local-explorer-ui --log-order=stream
|
|
timeout-minutes: 30
|
|
env:
|
|
CI_OS: Linux
|
|
NODE_OPTIONS: "--max_old_space_size=8192"
|
|
|
|
- name: Upload turbo logs
|
|
if: always()
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: turbo-runs
|
|
path: .turbo/runs
|