Skip to content

Commit 8df8ca3

Browse files
committed
chore: small fix
1 parent e9bc0e3 commit 8df8ca3

File tree

6 files changed

+130
-15
lines changed

6 files changed

+130
-15
lines changed

.github/workflows/test-ubuntu.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,13 @@ jobs:
103103
if: steps.changes.outputs.changed == 'true'
104104
run: pnpm run test:artifact
105105

106-
- name: E2E Test (Playwright)
106+
- name: Examples Test
107107
if: steps.changes.outputs.changed == 'true'
108-
run: pnpm run test:e2e
108+
run: pnpm run build:examples
109109

110-
- name: Examples Test
110+
- name: E2E Test (Playwright)
111111
if: steps.changes.outputs.changed == 'true'
112-
run: |
113-
pnpm run build:examples
112+
run: pnpm run test:e2e
114113

115114
- name: Run benchmarks
116115
uses: CodSpeedHQ/action@v3

.github/workflows/test-windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ jobs:
112112
if: steps.changes.outputs.changed == 'true'
113113
run: pnpm run test:artifact
114114

115-
- name: E2E Test (Playwright)
116-
if: steps.changes.outputs.changed == 'true'
117-
run: pnpm run test:e2e
118-
119115
- name: Examples Test
120116
if: steps.changes.outputs.changed == 'true'
121117
run: pnpm run build:examples
118+
119+
- name: E2E Test (Playwright)
120+
if: steps.changes.outputs.changed == 'true'
121+
run: pnpm run test:e2e

benchmark/index.bench.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
import { bench, describe } from 'vitest';
22
import { getCwdByExample, rslibBuild } from './utils';
33

4-
describe('express-plugin', () => {
4+
describe('run rslib in examples', () => {
55
bench(
6-
'rslib build',
6+
'examples/express-plugin',
77
async () => {
88
const cwd = getCwdByExample('express-plugin');
99
await rslibBuild(cwd);
1010
},
11-
{ time: 10 },
11+
{ time: 5 },
12+
);
13+
bench(
14+
'examples/react-component',
15+
async () => {
16+
const cwd = getCwdByExample('react-component');
17+
await rslibBuild(cwd);
18+
},
19+
{ time: 5 },
1220
);
1321
});

benchmark/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
"scripts": {
66
"benchmark": "vitest bench"
77
},
8-
"dependencies": {
9-
"react": "^18.3.1"
10-
},
118
"devDependencies": {
129
"@codspeed/vitest-plugin": "^3.1.1",
1310
"@e2e/helper": "workspace:*",
11+
"@rslib/tsconfig": "workspace:*",
1412
"typescript": "^5.6.2",
1513
"vitest": "^2.0.5"
1614
}

benchmark/tsconfig.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": "@rslib/tsconfig/base",
3+
"compilerOptions": {
4+
"outDir": "./dist",
5+
"baseUrl": "./",
6+
"rootDir": "src",
7+
"declaration": true,
8+
"isolatedDeclarations": true,
9+
"composite": true,
10+
"module": "ESNext",
11+
"moduleResolution": "Bundler"
12+
},
13+
"include": ["src"],
14+
"exclude": ["**/node_modules"]
15+
}

pnpm-lock.yaml

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)