This repository was archived by the owner on Feb 17, 2025. It is now read-only.
File tree 3 files changed +50
-0
lines changed
3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ workflow_dispatch :
4
+ pull_request :
5
+ push :
6
+
7
+ jobs :
8
+ test :
9
+ runs-on : ${{ matrix.os }}
10
+ strategy :
11
+ fail-fast : true
12
+ matrix :
13
+ os : [macos-latest, ubuntu-latest]
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ - uses : actions/setup-node@v3
17
+ with :
18
+ node-version : 18
19
+ - run : npm install
20
+ - run : npm test
21
+
22
+ test_windows :
23
+ runs-on : windows-latest
24
+ steps :
25
+ - uses : actions/checkout@v3
26
+ - uses : actions/setup-node@v3
27
+ with :
28
+ node-version : 18
29
+ - run : npm install
30
+ - run : npm run test-windows
Original file line number Diff line number Diff line change
1
+ name : Lint
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - " **"
10
+
11
+ jobs :
12
+ lint :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ - name : Install modules
17
+ run : npm install
18
+ - name : Run ESLint
19
+ run : npm run lint
Original file line number Diff line number Diff line change 21
21
},
22
22
"scripts" : {
23
23
"build" : " tree-sitter generate && node-gyp build" ,
24
+ "lint" : " eslint grammar.js" ,
24
25
"test" : " tree-sitter test && tree-sitter parse examples/* --quiet --time" ,
25
26
"test-windows" : " tree-sitter test"
26
27
},
You can’t perform that action at this time.
0 commit comments