Skip to content

Commit

Permalink
added typecheck task.
Browse files Browse the repository at this point in the history
  • Loading branch information
lquixada committed Mar 18, 2021
1 parent 237ef8b commit 9f02de3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: make lint

typecheck:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: make typecheck
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
all: test lint
all: test lint typecheck

node_modules: package.json
npm install && /usr/bin/touch node_modules
Expand Down Expand Up @@ -49,4 +49,7 @@ test-module-node-esm: build
test-module-react-native: build
./test/module/react-native/run.sh

.PHONY: all build deploy lint test test-fetch test-fetch-browser test-fetch-whatwg test-fetch-node test-module test-module-web-cjs test-module-web-esm test-module-node-cjs test-module-node-esm test-module-react-native
typecheck:
npx tsc --lib ES6 index.d.ts

.PHONY: all build deploy lint test test-fetch test-fetch-browser test-fetch-whatwg test-fetch-node test-module test-module-web-cjs test-module-web-esm test-module-node-cjs test-module-node-esm test-module-react-native typecheck
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"serve-index": "1.9.1",
"sinon": "9.2.4",
"standard": "16.0.3",
"typescript": "4.2.3",
"webpack": "5.25.0",
"webpack-cli": "4.5.0",
"whatwg-fetch": "3.0.0"
Expand Down

0 comments on commit 9f02de3

Please sign in to comment.