File tree 2 files changed +36
-8
lines changed
2 files changed +36
-8
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,15 @@ jobs:
30
30
matrix :
31
31
os : [ubuntu-latest, windows-latest, macos-14]
32
32
steps :
33
- - name : Set up the repo
34
- uses :
tree-sitter/[email protected]
35
- with :
36
- node-version : ${{vars.NODE_VERSION}}
33
+ - name : Checkout repository
34
+ uses : actions/checkout@v4
35
+ - name : Set up tree-sitter
36
+ uses : tree-sitter/setup-action/cli@v1
37
37
- name : Run tests
38
- uses :
tree-sitter/[email protected]
38
+ uses : tree-sitter/parser-test-action@v2
39
+ with :
40
+ test-rust : ${{runner.os == 'Linux'}}
41
+ - name : Parse examples
42
+ uses : tree-sitter/parse-action@v4
39
43
with :
40
- lint : ${{runner.os == 'Linux'}}
41
- test-library : ${{runner.os == 'Linux'}}
42
- corpus-files : examples/*.c
44
+ files : examples/*
Original file line number Diff line number Diff line change
1
+ name : Lint
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ paths :
7
+ - grammar.js
8
+ pull_request :
9
+ paths :
10
+ - grammar.js
11
+
12
+ jobs :
13
+ lint :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v4
18
+ - name : Set up Node.js
19
+ uses : actions/setup-node@v4
20
+ with :
21
+ cache : npm
22
+ node-version : ${{vars.NODE_VERSION}}
23
+ - name : Install modules
24
+ run : npm ci --legacy-peer-deps
25
+ - name : Run ESLint
26
+ run : npm run lint
You can’t perform that action at this time.
0 commit comments