Skip to content

Commit d33e20b

Browse files
ObserverOfTimeamaanq
authored andcommitted
ci: update workflows
1 parent ff7f769 commit d33e20b

File tree

2 files changed

+36
-8
lines changed

2 files changed

+36
-8
lines changed

.github/workflows/ci.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ jobs:
3030
matrix:
3131
os: [ubuntu-latest, windows-latest, macos-14]
3232
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
3737
- 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
3943
with:
40-
lint: ${{runner.os == 'Linux'}}
41-
test-library: ${{runner.os == 'Linux'}}
42-
corpus-files: examples/*.c
44+
files: examples/*

.github/workflows/lint.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

0 commit comments

Comments
 (0)