File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build, Lint, Test and Measure Coverage
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ matrix :
15+ node-version : [14.x, 16.x, 18.x]
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+
20+ - name : Use Node.js ${{ matrix.node-version }}
21+ uses : actions/setup-node@v3
22+ with :
23+ node-version : ${{ matrix.node-version }}
24+
25+ - name : Setup Environment
26+ run : |
27+ echo "NO_SERIALPORT_INSTALL=1" >> $GITHUB_ENV
28+
29+ - name : Install Dependencies
30+ run : |
31+ npm install -g grunt-cli
32+ npm install
33+
34+ # - name: Validate Examples
35+ # run: |
36+ # grunt test-examples
37+
38+ - name : Linting
39+ run : |
40+ grunt jshint jscs
41+
42+ - name : Run Unit Tests
43+ run : |
44+ grunt nodeunit
45+
46+ # - name: Run Test Coverage
47+ # run: |
48+ # npm run test-cover
49+ # npm run coveralls
You can’t perform that action at this time.
0 commit comments