Skip to content

Commit 8f40470

Browse files
committed
initial
1 parent 9b47219 commit 8f40470

89 files changed

Lines changed: 12557 additions & 2302 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This configuration only applies to the package manager root.
22
/** @type {import("eslint").Linter.Config} */
33
module.exports = {
4-
ignorePatterns: ["apps/**", "packages/**"],
4+
ignorePatterns: ["examples/**", "packages/**"],
55
extends: ["@workspace/eslint-config/library.js"],
66
parser: "@typescript-eslint/parser",
77
parserOptions: {

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
10+
concurrency:
11+
group: ci-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
23+
- name: Setup PNPM
24+
uses: pnpm/action-setup@v4
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version-file: '.nvmrc'
30+
cache: 'pnpm'
31+
32+
- name: Install dependencies
33+
run: pnpm install
34+
35+
- name: Typecheck
36+
run: pnpm -w typecheck
37+
38+
- name: Lint
39+
run: pnpm -w lint
40+
41+
- name: Build
42+
run: pnpm -w build
43+
44+
- name: Test
45+
run: pnpm -w test
46+

.github/workflows/e2e.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: E2E
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
10+
jobs:
11+
e2e:
12+
runs-on: ubuntu-latest
13+
concurrency:
14+
group: e2e-${{ github.ref }}
15+
cancel-in-progress: true
16+
permissions:
17+
contents: read
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup PNPM
24+
uses: pnpm/action-setup@v4
25+
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version-file: '.nvmrc'
31+
cache: 'pnpm'
32+
33+
- name: Install dependencies
34+
run: pnpm install
35+
36+
- name: Install Playwright browsers
37+
run: cd e2e && pnpm exec playwright install --with-deps
38+
39+
- name: Build workspace
40+
run: pnpm -w build
41+
42+
- name: Run Playwright smoke tests
43+
run: pnpm e2e:smoke
44+
45+
- name: Upload Playwright report
46+
if: always()
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: playwright-report
50+
path: e2e/playwright-report
51+
if-no-files-found: ignore
52+
53+
- name: Upload traces
54+
if: failure()
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: traces
58+
path: test-results/**/*.zip
59+
if-no-files-found: ignore

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ node_modules
1414

1515
# Testing
1616
coverage
17+
test-results
18+
playwright-report
1719

1820
# Turbo
1921
.turbo

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link-workspace-packages=true

.nvmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
22.17.1
2+

0 commit comments

Comments
 (0)