Skip to content

fix(e2e): dismiss claude modal (#1039) #4026

fix(e2e): dismiss claude modal (#1039)

fix(e2e): dismiss claude modal (#1039) #4026

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main, v0, v1]
workflow_dispatch:
jobs:
test:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- name: Unit Tests
command: pnpm run test:unit
- name: Lint & Format
command: pnpm run test:format
- name: Build
command: pnpm run build
- name: Build Examples
command: pnpm run build && pnpm --filter "./examples/*" build
- name: Docs Build
command: pnpm run --if-present --filter @skybridge/docs build
- name: Docs Lint
command: pnpm run --if-present --filter @skybridge/docs lint
- name: Landing Build
command: pnpm run --if-present --filter @skybridge/landing build
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v7
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ${{ matrix.name }}
run: ${{ matrix.command }}
devtools-e2e:
name: Devtools E2E
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v7
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build skybridge
run: pnpm --filter skybridge build
- name: Get Playwright version
id: playwright-version
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> "$GITHUB_OUTPUT"
working-directory: packages/devtools
- name: Cache Playwright browsers
uses: actions/cache@v6
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpm --filter @skybridge/devtools test:e2e:install
- name: Install Playwright system deps
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: pnpm --filter @skybridge/devtools exec playwright install-deps chromium
- name: Run E2E tests
run: pnpm --filter @skybridge/devtools test:e2e
- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@v7
with:
name: playwright-report
path: packages/devtools/playwright-report/
retention-days: 7
create-skybridge-template:
name: create-skybridge template
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v7
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build core and devtools
run: |
pnpm --filter skybridge build
pnpm --filter @skybridge/devtools build
- name: Build template
run: pnpm --filter apps-sdk-template run build
windows:
name: Windows build
runs-on: windows-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v7
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
draft-release:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: release-drafter/release-drafter@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}