Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline

- name: Cache Typecheck Turbo results
uses: actions/cache@v6
with:
path: .turbo/cache
key: typecheck-turbo-v1-${{ runner.os }}-${{ github.sha }}
restore-keys: |
typecheck-turbo-v1-${{ runner.os }}-

- name: Typecheck
run: pnpm typecheck

Expand Down Expand Up @@ -156,18 +164,20 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline

- uses: Swatinem/rust-cache@v2
with:
shared-key: shift-rust

- name: Cache native Turbo build
id: native-turbo-cache
uses: actions/cache@v6
with:
path: |
.turbo/cache
crates/shift-bridge/*.node
key: native-turbo-v1-${{ runner.os }}-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'rust-toolchain.toml', 'crates/*/Cargo.toml', 'crates/*/build.rs', 'crates/*/src/**', 'crates/shift-bridge/package.json', 'crates/shift-bridge/*.d.ts', 'pnpm-lock.yaml', 'turbo.json') }}

- uses: Swatinem/rust-cache@v2
if: steps.native-turbo-cache.outputs.cache-hit != 'true'
with:
shared-key: shift-rust

- name: Run unit tests
run: pnpm test:unit

Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Perf

on:
schedule:
- cron: "0 6 * * *"
push:
branches: [main]
paths:
Expand Down Expand Up @@ -68,6 +70,7 @@ concurrency:
jobs:
engine-benchmarks:
name: Engine Benchmarks
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -116,8 +119,17 @@ jobs:
- name: Run engine benchmarks
run: pnpm test:perf

playwright-perf:
name: Playwright GPU and Perf
playwright:
name: Playwright ${{ matrix.name }}
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
include:
- name: GPU
project: gpu
- name: Perf
project: perf
runs-on: macos-latest
permissions:
contents: read
Expand Down Expand Up @@ -203,19 +215,19 @@ jobs:
- name: Build E2E app
run: pnpm --filter @shift/desktop build:e2e

- name: Run Playwright GPU and perf tests
run: pnpm --filter @shift/desktop exec playwright test --project=gpu --project=perf
- name: Run Playwright ${{ matrix.name }} tests
run: pnpm --filter @shift/desktop exec playwright test --project=${{ matrix.project }}

- name: Upload Playwright failures
if: failure()
uses: actions/upload-artifact@v7
with:
name: playwright-gpu-results
name: playwright-${{ matrix.project }}-results
path: apps/desktop/e2e/test-results/
retention-days: 7

- name: Upload perf results
if: always()
if: ${{ always() && matrix.project == 'perf' }}
uses: actions/upload-artifact@v7
with:
name: perf-results
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"package": "electron-forge package",
"make": "electron-forge make",
"publish": "electron-forge publish",
"typecheck": "tsc --noEmit -p tsconfig.build.json",
"typecheck": "tsgo --noEmit -p tsconfig.build.json",
"lint": "oxlint --fix src/",
"lint:check": "oxlint --deny-warnings src/",
"test": "vitest run",
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src/renderer/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="vite/client" />
/// <reference types="@webgpu/types" />

declare module "*.wgsl?raw" {
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "@electron-toolkit/tsconfig/tsconfig.json",
"files": ["src/renderer/src/types/svg.d.ts"],
"include": [
"src/renderer/env.d.ts",
"src/renderer/**/*",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"node": ">=24.0.0 <25"
},
"devDependencies": {
"@typescript/native-preview": "7.0.0-dev.20260707.2",
"knip": "^5.84.1",
"oxfmt": "^0.49.0",
"ts-morph": "^27.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"scripts": {
"typecheck": "tsc --noEmit"
"typecheck": "tsgo --noEmit"
},
"dependencies": {
"@shift/types": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/geo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"scripts": {
"typecheck": "tsc --noEmit",
"typecheck": "tsgo --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/glyph-codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"scripts": {
"typecheck": "tsc --noEmit",
"typecheck": "tsgo --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/glyph-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"scripts": {
"typecheck": "tsc --noEmit",
"typecheck": "tsgo --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"generate": "git -C ../.. submodule update --init --recursive packages/glyph-info/vendor/GlyphsInfo && tsx scripts/generate.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/glyph-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"scripts": {
"typecheck": "tsc --noEmit",
"typecheck": "tsgo --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/rules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"scripts": {
"typecheck": "tsc --noEmit",
"typecheck": "tsgo --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"generate:bridge-types": "node ../../scripts/generate-bridge-types.mjs",
"typecheck": "tsc --noEmit"
"typecheck": "tsgo --noEmit"
},
"devDependencies": {
"@shift/tsconfig": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"scripts": {
"typecheck": "tsc --noEmit",
"typecheck": "tsgo --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"scripts": {
"typecheck": "tsc --noEmit",
"typecheck": "tsgo --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
Expand Down
81 changes: 81 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.