Skip to content

Commit c19d1b8

Browse files
authored
Merge pull request mxdi9i7#35 from mxdi9i7/ssysm/ci
Add build into test CI jobs, Make ESLint more strict on warnings.
2 parents 0afbacc + 7ad6700 commit c19d1b8

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/test.yml

+11
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,14 @@ jobs:
1313
registry-url: https://registry.npmjs.org/
1414
- run: yarn install
1515
- run: yarn test
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v1
20+
- uses: actions/setup-node@v1
21+
with:
22+
node-version: 12
23+
registry-url: https://registry.npmjs.org/
24+
- run: yarn install
25+
- run: yarn run build-storybook
26+
- run: yarn run build

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
"prepublish": "run-s build",
1818
"test": "run-s test:unit test:lint test:build",
1919
"test:build": "run-s build",
20-
"test:lint": "eslint .",
20+
"test:lint": "run-s lint",
2121
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom --passWithNoTests",
2222
"test:watch": "react-scripts test --env=jsdom",
2323
"predeploy": "cd example && yarn install && yarn run build",
2424
"deploy": "gh-pages -d example/build",
2525
"lint": "eslint --ext .tsx ./src",
26-
"lint:watch": "esw --watch --fix --ext .tsx ./src --no-ignore",
26+
"lint:watch": "esw --watch --fix --ext .tsx ./src",
2727
"storybook": "start-storybook -p 9009",
2828
"build-storybook": "build-storybook"
2929
},

0 commit comments

Comments
 (0)