Skip to content
Open
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
38 changes: 19 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,28 @@ jobs:
- name: Run tests and linter
run: npm run lint && npm test

# Собираем приложение
- name: Build Application
run: npm run build

# Публикуем приложение на Github Pages
- name: Deploy to Github Pages
# # Собираем приложение
# - name: Build Application
# run: npm run build

# # Публикуем приложение на Github Pages
# - name: Deploy to Github Pages
# uses: JamesIves/[email protected]
# with:
# branch: gh-pages
# folder: dist

# Собираем Storybook
- name: Build Storybook
run: npm run build-storybook

# Публикуем Storybook на Github Pages
- name: Deploy Storybook to Github Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist

# # Собираем Storybook
# - name: Build Storybook
# run: npm run build-storybook
#
# # Публикуем Storybook на Github Pages
# - name: Deploy Storybook to Github Pages
# uses: JamesIves/[email protected]
# with:
# branch: gh-pages
# folder: storybook-static
# commit-message: "Automatically publish Storybook"
folder: storybook-static
commit-message: "Automatically publish Storybook"

# Останавливаем выполнение строго при неудачных тестах
- name: Fail on failed tests
Expand Down
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const config = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)", "../src/**/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
Expand Down
17 changes: 17 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import type { Preview } from "@storybook/react";
import React from 'react';
import { ThemeProvider } from '../src/shared/providers/ThemeProvider/ThemeProvider';
import LocalizationProvider from '../src/shared/providers/LocalizationProvider/LocalizationProvider';
import '../src/shared/providers/ThemeProvider/theme.css';

const preview: Preview = {
parameters: {
Expand All @@ -9,7 +13,20 @@ const preview: Preview = {
date: /Date$/,
},
},
layout: 'fullscreen',
},
decorators: [
(Story) =>
React.createElement(
LocalizationProvider,
null,
React.createElement(
ThemeProvider,
null,
React.createElement('div', { style: { padding: 16 } }, React.createElement(Story))
)
),
],
};

export default preview;
Loading