File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test and Lint
2
+ on :
3
+ push :
4
+ branches : [master]
5
+ pull_request :
6
+ branches : [master]
7
+ jobs :
8
+ test :
9
+ name : Test and Lint
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Install packages
14
+ run : npm ci
15
+ - name : Prettier
16
+ run : npm run format:check
17
+ - name : Lint
18
+ run : npm run lint
19
+ - name : Test code
20
+ run : npm test
Original file line number Diff line number Diff line change 30
30
"build" : " rimraf dist && tsc && tsc -p tsconfig.esm.json && node build-scripts/dist-package-json" ,
31
31
"prepublish" : " npm run build" ,
32
32
"prepare" : " husky install" ,
33
+ "format:check" : " prettier --check **/*.{ts,js} !**/dist/** !**/node_modules/**" ,
33
34
"lint" : " eslint . --ext .ts" ,
34
35
"start" : " ts-node demo/emulator-run.ts" ,
35
36
"start:micropython" : " ts-node demo/micropython-run.ts" ,
You can’t perform that action at this time.
0 commit comments