Skip to content

[codex] shared tree shaking followups (#4512) #288

[codex] shared tree shaking followups (#4512)

[codex] shared tree shaking followups (#4512) #288

Workflow file for this run

name: Devtools
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
main:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout Repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js 20
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install --frozen-lockfile && find . -maxdepth 6 -type d \( -name ".cache" -o -name ".modern-js" \) -exec rm -rf {} +
- name: Restore Turborepo cache
uses: actions/cache@v5
with:
path: |
.turbo
**/.turbo
key: ${{ runner.os }}-turbo-${{ github.workflow }}-${{ github.job }}-${{ github.ref_name }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-turbo-${{ github.workflow }}-${{ github.job }}-${{ github.ref_name }}-
${{ runner.os }}-turbo-${{ github.workflow }}-${{ github.job }}-
${{ runner.os }}-turbo-
- name: Install Cypress
run: npx cypress install
- name: Install Playwright browsers
run: pnpm --filter @module-federation/devtools exec playwright install chromium
- name: Build shared packages
run: pnpm run build:packages
- name: Install xvfb
run: sudo apt-get update && sudo apt-get install xvfb
- name: E2E Chrome Devtools Dev
run: npx kill-port 3009 3010 3011 3012 3013 4001 && pnpm run app:manifest:dev & echo "done" && npx wait-on tcp:3009 tcp:3010 tcp:3011 tcp:3012 tcp:3013 && sleep 10 && pnpm exec turbo run test:e2e --filter=@module-federation/devtools --only
- name: E2E Chrome Devtools Prod
run: npx kill-port 3009 3010 3011 3012 3013 4001 && npx kill-port 3009 3010 3011 3012 3013 4001 && pnpm run app:manifest:prod & echo "done" && npx wait-on tcp:3009 tcp:3010 tcp:3011 tcp:3012 tcp:3013 && sleep 30 && pnpm exec turbo run test:e2e --filter=@module-federation/devtools --only
- name: Kill devtools ports
run: npx kill-port 3013 3009 3010 3011 3012 4001 || true