ci: Fix vitest module resolution in CI
This commit is contained in:
11 files changed
+178
-573
No files matched your search
@@ -5,6 +5,7 @@ on:
|
|||||||
branches: [next]
|
branches: [next]
|
||||||
paths:
|
paths:
|
||||||
- 'packages/stl/**'
|
- 'packages/stl/**'
|
||||||
|
- '.github/workflows/packages-stl-next-required.yml'
|
||||||
- 'pnpm-lock.yaml'
|
- 'pnpm-lock.yaml'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'packages/ui/**'
|
- 'packages/ui/**'
|
||||||
- 'packages/stl/**'
|
- 'packages/stl/**'
|
||||||
|
- '.github/workflows/packages-ui-next-required.yml'
|
||||||
- 'pnpm-lock.yaml'
|
- 'pnpm-lock.yaml'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -102,8 +103,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: storybook-config-dist
|
name: storybook-config-dist
|
||||||
path: packages/storybook-config/dist
|
path: packages/storybook-config/dist
|
||||||
- name: Lint STL package
|
|
||||||
run: pnpm --filter @ermnvldmr/stl lint
|
|
||||||
- name: Lint UI package
|
- name: Lint UI package
|
||||||
run: pnpm --filter @ermnvldmr/ui lint
|
run: pnpm --filter @ermnvldmr/ui lint
|
||||||
|
|
||||||
@@ -133,8 +132,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: storybook-config-dist
|
name: storybook-config-dist
|
||||||
path: packages/storybook-config/dist
|
path: packages/storybook-config/dist
|
||||||
- name: Typecheck STL package
|
|
||||||
run: pnpm --filter @ermnvldmr/stl typecheck
|
|
||||||
- name: Typecheck UI package
|
- name: Typecheck UI package
|
||||||
run: pnpm --filter @ermnvldmr/ui typecheck
|
run: pnpm --filter @ermnvldmr/ui typecheck
|
||||||
|
|
||||||
@@ -164,6 +161,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: storybook-config-dist
|
name: storybook-config-dist
|
||||||
path: packages/storybook-config/dist
|
path: packages/storybook-config/dist
|
||||||
|
- name: Build STL package
|
||||||
|
run: pnpm --filter @ermnvldmr/stl build
|
||||||
- name: Test UI package
|
- name: Test UI package
|
||||||
run: pnpm --filter @ermnvldmr/ui test:coverage
|
run: pnpm --filter @ermnvldmr/ui test:coverage
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
@@ -200,6 +199,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: storybook-config-dist
|
name: storybook-config-dist
|
||||||
path: packages/storybook-config/dist
|
path: packages/storybook-config/dist
|
||||||
|
- name: Build STL package
|
||||||
|
run: pnpm --filter @ermnvldmr/stl build
|
||||||
|
- name: Build STL package
|
||||||
|
run: pnpm --filter @ermnvldmr/stl build
|
||||||
- name: Build UI package
|
- name: Build UI package
|
||||||
run: pnpm --filter @ermnvldmr/ui build
|
run: pnpm --filter @ermnvldmr/ui build
|
||||||
- name: Build UI Storybook
|
- name: Build UI Storybook
|
||||||
@@ -233,6 +236,8 @@ jobs:
|
|||||||
path: packages/storybook-config/dist
|
path: packages/storybook-config/dist
|
||||||
- name: Install Playwright browsers
|
- name: Install Playwright browsers
|
||||||
run: pnpm --filter @ermnvldmr/ui exec playwright install --with-deps chromium
|
run: pnpm --filter @ermnvldmr/ui exec playwright install --with-deps chromium
|
||||||
|
- name: Build STL package
|
||||||
|
run: pnpm --filter @ermnvldmr/stl build
|
||||||
- name: Build UI Storybook
|
- name: Build UI Storybook
|
||||||
run: pnpm --filter @ermnvldmr/ui build-storybook
|
run: pnpm --filter @ermnvldmr/ui build-storybook
|
||||||
- name: Test Storybook
|
- name: Test Storybook
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'services/static/**'
|
- 'services/static/**'
|
||||||
- 'packages/ui/**'
|
- 'packages/ui/**'
|
||||||
|
- 'packages/stl/**'
|
||||||
|
- '.github/workflows/services-static-next-required.yml'
|
||||||
- 'pnpm-lock.yaml'
|
- 'pnpm-lock.yaml'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -137,6 +139,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: rsbuild-config-dist
|
name: rsbuild-config-dist
|
||||||
path: packages/rsbuild-config/dist
|
path: packages/rsbuild-config/dist
|
||||||
|
- name: Build STL package
|
||||||
|
run: pnpm --filter @ermnvldmr/stl build
|
||||||
|
- name: Build UI package
|
||||||
|
run: pnpm --filter @ermnvldmr/ui build
|
||||||
- name: Build static service
|
- name: Build static service
|
||||||
run: pnpm --filter @ermnvldmr/static build
|
run: pnpm --filter @ermnvldmr/static build
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ on:
|
|||||||
- 'services/www/**'
|
- 'services/www/**'
|
||||||
- 'packages/ui/**'
|
- 'packages/ui/**'
|
||||||
- 'packages/stl/**'
|
- 'packages/stl/**'
|
||||||
|
- '.github/workflows/services-www-next-required.yml'
|
||||||
- 'pnpm-lock.yaml'
|
- 'pnpm-lock.yaml'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -103,10 +104,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: storybook-config-dist
|
name: storybook-config-dist
|
||||||
path: packages/storybook-config/dist
|
path: packages/storybook-config/dist
|
||||||
- name: Lint STL package
|
|
||||||
run: pnpm --filter @ermnvldmr/stl lint
|
|
||||||
- name: Lint UI package
|
|
||||||
run: pnpm --filter @ermnvldmr/ui lint
|
|
||||||
- name: Lint WWW service
|
- name: Lint WWW service
|
||||||
run: pnpm --filter @ermnvldmr/www lint
|
run: pnpm --filter @ermnvldmr/www lint
|
||||||
|
|
||||||
@@ -136,10 +133,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: storybook-config-dist
|
name: storybook-config-dist
|
||||||
path: packages/storybook-config/dist
|
path: packages/storybook-config/dist
|
||||||
- name: Typecheck STL package
|
|
||||||
run: pnpm --filter @ermnvldmr/stl typecheck
|
|
||||||
- name: Typecheck UI package
|
|
||||||
run: pnpm --filter @ermnvldmr/ui typecheck
|
|
||||||
- name: Typecheck WWW service
|
- name: Typecheck WWW service
|
||||||
run: pnpm --filter @ermnvldmr/www typecheck
|
run: pnpm --filter @ermnvldmr/www typecheck
|
||||||
|
|
||||||
@@ -169,6 +162,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: storybook-config-dist
|
name: storybook-config-dist
|
||||||
path: packages/storybook-config/dist
|
path: packages/storybook-config/dist
|
||||||
|
- name: Build STL package
|
||||||
|
run: pnpm --filter @ermnvldmr/stl build
|
||||||
|
- name: Build UI package
|
||||||
|
run: pnpm --filter @ermnvldmr/ui build
|
||||||
- name: Build WWW Storybook
|
- name: Build WWW Storybook
|
||||||
run: pnpm --filter @ermnvldmr/www build-storybook
|
run: pnpm --filter @ermnvldmr/www build-storybook
|
||||||
- name: Upload Storybook build
|
- name: Upload Storybook build
|
||||||
@@ -204,10 +201,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: storybook-config-dist
|
name: storybook-config-dist
|
||||||
path: packages/storybook-config/dist
|
path: packages/storybook-config/dist
|
||||||
- name: Test STL package
|
- name: Build STL package
|
||||||
run: pnpm --filter @ermnvldmr/stl test:coverage
|
run: pnpm --filter @ermnvldmr/stl build
|
||||||
- name: Test UI package
|
- name: Build UI package
|
||||||
run: pnpm --filter @ermnvldmr/ui test:coverage
|
run: pnpm --filter @ermnvldmr/ui build
|
||||||
- name: Test WWW service
|
- name: Test WWW service
|
||||||
run: pnpm --filter @ermnvldmr/www test:coverage
|
run: pnpm --filter @ermnvldmr/www test:coverage
|
||||||
- name: Upload Unit coverage to Codecov
|
- name: Upload Unit coverage to Codecov
|
||||||
@@ -287,6 +284,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: storybook-config-dist
|
name: storybook-config-dist
|
||||||
path: packages/storybook-config/dist
|
path: packages/storybook-config/dist
|
||||||
|
- name: Build STL package
|
||||||
|
run: pnpm --filter @ermnvldmr/stl build
|
||||||
|
- name: Build UI package
|
||||||
|
run: pnpm --filter @ermnvldmr/ui build
|
||||||
- name: Build WWW service
|
- name: Build WWW service
|
||||||
run: pnpm --filter @ermnvldmr/www build
|
run: pnpm --filter @ermnvldmr/www build
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rsbuild/core": "^1.7.3",
|
"@rsbuild/core": "^1.7.3",
|
||||||
"typescript": "^5.8.2",
|
"typescript": "^5.8.2",
|
||||||
|
"vite-tsconfig-paths": "^6.1.1",
|
||||||
"vitest": "^4.0.18"
|
"vitest": "^4.0.18"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
import { defineConfig } from 'vitest/config';
|
import { defineConfig } from 'vitest/config';
|
||||||
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||||
|
|
||||||
export const baseVitestConfig = defineConfig({
|
export const baseVitestConfig = defineConfig({
|
||||||
|
plugins: [tsconfigPaths()],
|
||||||
test: {
|
test: {
|
||||||
globals: true,
|
globals: true,
|
||||||
environment: 'node',
|
environment: 'node',
|
||||||
@@ -23,4 +25,5 @@ export const reactVitestConfig = defineConfig({
|
|||||||
'\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
'\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
plugins: [tsconfigPaths()],
|
||||||
});
|
});
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rsbuild/plugin-babel": "^1.1.0",
|
"@rsbuild/plugin-babel": "^1.1.0",
|
||||||
"babel-plugin-istanbul": "^7.0.1",
|
"babel-plugin-istanbul": "^7.0.1",
|
||||||
"storybook-react-rsbuild": "^0.1.10",
|
"storybook-react-rsbuild": "^2.1.6",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vite": "^7.2.2"
|
"vite": "^7.2.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
"playwright": "^1.57.0",
|
"playwright": "^1.57.0",
|
||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
"storybook": "^8.6.15",
|
"storybook": "^8.6.15",
|
||||||
"storybook-react-rsbuild": "^0.1.10",
|
"storybook-react-rsbuild": "^2.1.6",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vitest": "^4.0.18",
|
"vitest": "^4.0.18",
|
||||||
"wait-on": "^8.0.3"
|
"wait-on": "^8.0.3"
|
||||||
|
|||||||
Generated
+137
-539
File diff suppressed because it is too large.
Load diff
@@ -66,7 +66,7 @@
|
|||||||
"remark-frontmatter": "^5.0.0",
|
"remark-frontmatter": "^5.0.0",
|
||||||
"remark-mdx-frontmatter": "^5.2.0",
|
"remark-mdx-frontmatter": "^5.2.0",
|
||||||
"storybook": "^8.6.15",
|
"storybook": "^8.6.15",
|
||||||
"storybook-react-rsbuild": "^0.1.10",
|
"storybook-react-rsbuild": "^2.1.6",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vitest": "^4.0.18",
|
"vitest": "^4.0.18",
|
||||||
|
|||||||
@@ -1,25 +1,15 @@
|
|||||||
import React from 'react';
|
import type { Meta, StoryObj } from '@storybook/react';
|
||||||
import { Welcome } from './Welcome';
|
import { Welcome } from './Welcome';
|
||||||
|
|
||||||
import type { Meta, StoryObj } from '@storybook/react';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Metadata for the Welcome component stories.
|
|
||||||
*/
|
|
||||||
const meta: Meta<typeof Welcome> = {
|
const meta: Meta<typeof Welcome> = {
|
||||||
title: 'WWW/Widgets/Welcome',
|
title: 'Widgets/Welcome',
|
||||||
component: Welcome,
|
component: Welcome,
|
||||||
tags: ['autodocs'],
|
parameters: {
|
||||||
|
layout: 'fullscreen',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default meta;
|
export default meta;
|
||||||
|
|
||||||
/**
|
|
||||||
* Story type for the Welcome component.
|
|
||||||
*/
|
|
||||||
type Story = StoryObj<typeof Welcome>;
|
type Story = StoryObj<typeof Welcome>;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default story for the Welcome component.
|
|
||||||
*/
|
|
||||||
export const Default: Story = {};
|
export const Default: Story = {};
|
||||||
Reference in new issue
Block a user