diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e66fdae..6c48d94 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -13,44 +13,6 @@ concurrency: permissions: {} jobs: - types-matrix: - name: Types (${{ matrix.name }}) - runs-on: namespace-profile-linux-small - permissions: - contents: read - timeout-minutes: 10 - strategy: - fail-fast: false - matrix: - include: - - name: Check - command: pnpm check-tsc - - name: Tests - command: pnpm test-types --target '>=5.9' - steps: - - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - - name: Install dependencies - uses: ./.github/actions/setup - - run: ${{ matrix.command }} - env: - # Leave memory headroom for the runner by collecting the Go heap earlier. - GOMEMLIMIT: 4GiB - TSTYCHE_FETCH_TIMEOUT: "120" - - types: - name: Types - needs: types-matrix - if: always() - runs-on: ubuntu-latest - permissions: {} - timeout-minutes: 5 - steps: - - name: Check type jobs - if: needs.types-matrix.result != 'success' - run: | - echo "Type checks finished with result: ${{ needs.types-matrix.result }}" - exit 1 - bundle-size: name: Bundle size runs-on: ubuntu-latest @@ -92,55 +54,3 @@ jobs: path: ${{ runner.temp }}/bundle-size retention-days: 7 if-no-files-found: error - - test: - name: Test (${{ matrix.runtime }}) - runs-on: namespace-profile-linux-default - permissions: - contents: read - timeout-minutes: 15 - strategy: - fail-fast: false - matrix: - include: - - runtime: Node - node: "" - command: pnpm test --max-concurrency=10 - - runtime: Node 22.19.0 minimum - node: 22.19.0 - command: pnpm vitest run --project @effect/ui --max-concurrency=10 - - runtime: Node, flush first - node: "" - command: pnpm vitest run --max-concurrency=10 - flush: first - - runtime: Node, flush last - node: "" - command: pnpm vitest run --max-concurrency=10 - flush: last - - runtime: Node, flush seed 1 - node: "" - command: pnpm vitest run --max-concurrency=10 - flush: 1 - steps: - - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - - name: Install dependencies - uses: ./.github/actions/setup - with: - node-version: ${{ matrix.node }} - - name: Test - run: ${{ matrix.command }} - env: - EFFECT_UI_TEST_FLUSH: ${{ matrix.flush }} - - doctest: - name: Test (Documentation) - runs-on: namespace-profile-linux-small - permissions: - contents: read - timeout-minutes: 10 - steps: - - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - - name: Install dependencies - uses: ./.github/actions/setup - - name: Test Documentation - run: pnpm doctest diff --git a/.github/workflows/launch.yml b/.github/workflows/launch.yml deleted file mode 100644 index cd05e15..0000000 --- a/.github/workflows/launch.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Launch site -on: - workflow_dispatch: - push: - branches: [main] - paths: - - examples/launch/** - - packages/** - - package.json - - pnpm-lock.yaml - - pnpm-workspace.yaml - - tsconfig.base.json - - .github/actions/setup/** - - .github/workflows/launch.yml - -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: false - -permissions: {} - -jobs: - deploy: - name: Deploy to ui.effect.website - if: github.repository == 'Effect-TS/ui' && github.ref == 'refs/heads/main' - runs-on: namespace-profile-linux-small - permissions: - contents: read - timeout-minutes: 10 - steps: - - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - - name: Install dependencies - uses: ./.github/actions/setup - - run: pnpm --filter launch build - - run: pnpm dlx wrangler@4.168.0 deploy - working-directory: examples/launch - env: - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml deleted file mode 100644 index c63298a..0000000 --- a/.github/workflows/snapshot.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Snapshot -on: - push: - branches: [main] - pull_request: - branches: [main] - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: {} - -jobs: - approval-gate: - if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository - runs-on: namespace-profile-linux-small - environment: fork - steps: - - run: echo "Fork PR approved by maintainer." - - snapshot: - name: Snapshot - needs: [approval-gate] - if: >- - !cancelled() - && (needs.approval-gate.result == 'success' || needs.approval-gate.result == 'skipped') - && github.repository_owner == 'Effect-TS' - runs-on: namespace-profile-linux-small - permissions: - contents: read - timeout-minutes: 10 - steps: - - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - - name: Install dependencies - uses: ./.github/actions/setup - - name: Set strip internals config - run: | - sed -i 's/"stripInternal": false/"stripInternal": true/' tsconfig.base.json - - name: Run codemods - run: pnpm codemod - - name: Build package - env: - # Leave memory for the runner and package builds on the 8 GB runner. - # The native TypeScript compiler uses Go's soft memory limit. - GOMEMLIMIT: 4GiB - run: pnpm build - - name: Create snapshot - id: snapshot - run: pnpm exec pkg-pr-new publish --pnpm --comment=off ./packages/ui ./packages/ui-kit ./packages/ui-devtools ./packages/ui-opentui diff --git a/packages/ui/benchmark/bundle-size/counter.ts b/packages/ui/benchmark/bundle-size/counter.ts index 9f03597..e54f8b6 100644 --- a/packages/ui/benchmark/bundle-size/counter.ts +++ b/packages/ui/benchmark/bundle-size/counter.ts @@ -22,3 +22,4 @@ const Counter = Html.component({ Layer.launch(BrowserHost.mount(Counter, {}, document.getElementById("app")!)) .pipe(Effect.runFork) +console.log("bundle size e2e")