Skip to content
Merged
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
35 changes: 35 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Code Check

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Check codebase (lint and typecheck)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Installation
run: yarn --frozen-lockfile

- name: Lint
run: yarn lint

- name: Test
run: yarn run test

- name: Library Build
run: yarn run build

- name: Storybook Build
run: yarn run storybook:build
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ bundle-stats.html
.next
.out
.history/
stats.html
stats.html
/.idea
5 changes: 4 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module.exports = {
"@storybook/addon-controls",
// "@storybook/addon-actions"
],
core: {
builder: 'webpack5',
},
"webpackFinal": async (config) => {
config.module.rules.push({
test: /\.mjs$/,
Expand All @@ -14,4 +17,4 @@ module.exports = {
})
return config
}
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-replace": "^3.0.0",
"@storybook/addon-controls": "^6.4.13",
"@storybook/builder-webpack5": "^6.5.16",
"@storybook/manager-webpack5": "^6.5.16",
"@storybook/react": "^6.4.13",
"@types/react": "^17.0.38",
"babel-jest": "^27.0.6",
Expand All @@ -60,7 +62,8 @@
"rollup-plugin-visualizer": "^5.5.4",
"styled-components": "^4.0.0-beta.8",
"typescript": "^2.9.2",
"typings-tester": "^0.3.1"
"typings-tester": "^0.3.1",
"webpack": "^5.76.3"
},
"files": [
"src",
Expand Down
Loading