Skip to content

Commit 690c243

Browse files
committed
Shared: add CI check for shared extractor
1 parent 9005684 commit 690c243

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test tree-sitter-extractor
2+
3+
on:
4+
push:
5+
paths:
6+
- "shared/tree-sitter-extractor/**"
7+
- .github/workflows/tree-sitter-extractor-test.yml
8+
branches:
9+
- main
10+
- "rc/*"
11+
pull_request:
12+
paths:
13+
- "shared/tree-sitter-extractor/**"
14+
- .github/workflows/tree-sitter-extractor-test.yml
15+
branches:
16+
- main
17+
- "rc/*"
18+
19+
env:
20+
CARGO_TERM_COLOR: always
21+
22+
defaults:
23+
run:
24+
working-directory: shared/tree-sitter-extractor
25+
26+
jobs:
27+
test:
28+
steps:
29+
- uses: actions/checkout@v3
30+
- name: Check formatting
31+
run: cargo fmt --all -- --check
32+
- name: Run tests
33+
run: cargo test --verbose
34+
- name: Run clippy
35+
fmt:
36+
steps:
37+
- uses: actions/checkout@v3
38+
- name: Check formatting
39+
run: cargo fmt --check
40+
clippy:
41+
steps:
42+
- uses: actions/checkout@v3
43+
- name: Run clippy
44+
run: cargo clippy -- --no-deps -D warnings

0 commit comments

Comments
 (0)