This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 1- # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
1+ # This workflow will do a clean install of npm dependencies, run tests across different versions of Node.js,
2+ # run the linter, and run TypeScript type checking.
3+ #
24# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
35
46name : Test
57
68on :
79 push :
8- branches : [ master, v2 ]
10+ branches : [ master ]
911 pull_request :
10- branches : [ master, v2 ]
12+ branches : [ master ]
1113
1214jobs :
1315 test :
16+ name : " Test"
1417 runs-on : ${{ matrix.os }}
1518
1619 strategy :
1720 matrix :
1821 os : [ubuntu-latest, windows-latest]
19- node : [16.7.0, 17 .x]
22+ node : [16.7.0, 18 .x]
2023 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2124
2225 steps :
2730 node-version : ${{ matrix.node }}
2831 - run : npm ci
2932 - run : npm test
33+
34+ lint_type :
35+ name : " Lint & Type Check"
36+ runs-on : ubuntu-latest
37+ steps :
38+ - uses : actions/checkout@v2
39+ - name : Use Node.js 18.x
40+ uses : actions/setup-node@v2
41+ with :
42+ node-version : 18.x
43+ - run : npm ci
44+ - run : npm lint
45+ - run : npm types:build
You can’t perform that action at this time.
0 commit comments