-
Notifications
You must be signed in to change notification settings - Fork 3
Chore/enable corepack GitHub actions #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0d021bd
2210d55
38a5f0a
90d6cef
896fd94
8fd4b72
117885e
9e89cc7
07125b8
385d4d7
c4cbd5f
dd8b732
7ce7be7
ecf90e9
8281bbc
03e9bba
3882f39
227a8b0
eb23314
c2211a3
0fb0ec1
b055f9b
269e5d7
54cf95c
cff2b83
66a0326
be08ba3
cab06cb
7a7779c
7fa7c99
9cce1a7
b864c7a
bce8242
2f63149
481217f
953def3
2de6706
36ae018
37bd449
e350905
dc1e08f
5317393
7c26bcc
7cc9305
846c4e2
3f1bc35
fe899cd
f96f4eb
a537ef3
94de98b
d300587
e8d61d9
504c16f
927d693
609d7d0
268f9d2
dcb011b
5ded115
ffca1bf
d3960d3
00d093f
3eaf59a
f99302f
3fdaa7d
c0a24b8
e3e53e3
b9f0114
2f461e1
372fb27
3fe4ba2
d866d86
3654447
77dbcc7
30f9f36
32cc28e
b8ad064
704a296
0ace8c5
be10f60
50ba720
635e892
8dc9829
1915fe6
35f733c
b909e8e
34783b5
f565779
80475a2
e8e026e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
name: ESLint | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
branches: [main] | ||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install modules | ||
run: yarn | ||
- name: Run ESLint | ||
run: yarn check-style | ||
- uses: actions/checkout@v2 | ||
- name: Enable corepack | ||
run: corepack enable | ||
- name: Install modules | ||
run: yarn | ||
- name: Run ESLint | ||
run: yarn check-style |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,13 +1,15 @@ | ||||||
name: TypeCheck | ||||||
on: | ||||||
pull_request: | ||||||
branches: [ main ] | ||||||
branches: [main] | ||||||
jobs: | ||||||
TypeScriptCompiler: | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v2 | ||||||
- name: Install modules | ||||||
run: yarn | ||||||
- name: Run TypeScriptCompiler | ||||||
run: yarn check-types | ||||||
- uses: actions/checkout@v2 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update The workflow uses - - uses: actions/checkout@v2
+ - uses: actions/checkout@v3 📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.4)9-9: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) |
||||||
- name: Enable corepack | ||||||
run: corepack enable | ||||||
- name: Install modules | ||||||
run: yarn | ||||||
- name: Run TypeScriptCompiler | ||||||
run: yarn check-types |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"**/*.{js,jsx,ts,tsx}": ["eslint"] | ||
"**/*.{js,jsx,ts,tsx}": ["eslint --fix"] | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["prettier-plugin-tailwindcss"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { StorybookConfig } from "@storybook/react-vite"; | ||
|
||
const config: StorybookConfig = { | ||
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"], | ||
addons: [ | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-onboarding", | ||
"@chromatic-com/storybook", | ||
"@storybook/addon-interactions", | ||
], | ||
framework: { | ||
name: "@storybook/react-vite", | ||
options: {}, | ||
}, | ||
typescript: { | ||
reactDocgen: "react-docgen-typescript", | ||
reactDocgenTypescriptOptions: { | ||
propFilter: (prop) => { | ||
if (prop.parent) { | ||
const fileName = prop.parent.fileName; | ||
// Include props from our own code (not in node_modules) | ||
if (!fileName.includes("node_modules")) { | ||
return true; | ||
} | ||
// Include props from react-aria-components and react-aria | ||
if ( | ||
fileName.includes("react-aria-components") || | ||
fileName.includes("react-aria") || | ||
fileName.includes("node_modules/@react-types") | ||
) { | ||
return true; | ||
} | ||
// Exclude all other props from node_modules | ||
return false; | ||
} | ||
return true; | ||
}, | ||
}, | ||
}, | ||
}; | ||
export default config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import React, { useEffect } from "react"; | ||
import clsx from "clsx"; | ||
|
||
import type { Preview } from "@storybook/react"; | ||
|
||
import "../src/styles/global.css"; | ||
|
||
export type IPreviewArgs = { | ||
themeUI: "light" | "dark"; | ||
backgroundUI: "white" | "light"; | ||
}; | ||
|
||
const preview: Preview = { | ||
decorators: [ | ||
(Story, { args }) => { | ||
const { themeUI, backgroundUI } = args; | ||
useEffect(() => { | ||
if (themeUI === "dark") document.documentElement.classList.add("dark"); | ||
else document.documentElement.classList.remove("dark"); | ||
}, [themeUI]); | ||
return ( | ||
<div | ||
className={clsx( | ||
"p-4", | ||
backgroundUI === "white" | ||
? "bg-klerosUIComponentsWhiteBackground" | ||
: "bg-klerosUIComponentsLightBackground", | ||
)} | ||
> | ||
<Story /> | ||
</div> | ||
); | ||
}, | ||
], | ||
args: { | ||
themeUI: "light", | ||
backgroundUI: "white", | ||
}, | ||
argTypes: { | ||
themeUI: { | ||
options: ["light", "dark"], | ||
control: { type: "radio" }, | ||
}, | ||
backgroundUI: { | ||
options: ["white", "light"], | ||
control: { type: "radio" }, | ||
}, | ||
}, | ||
parameters: { | ||
layout: "centered", | ||
}, | ||
}; | ||
|
||
export default preview; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update
actions/checkout
to the latest version.The workflow uses
actions/checkout@v2
, which is now outdated and may not be compatible with the latest GitHub Actions runners. Update toactions/checkout@v3
or later for improved security and compatibility.📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.4)
9-9: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)