-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.woodpecker.yml
33 lines (33 loc) · 872 Bytes
/
.woodpecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
steps:
test:
when:
- event: push
branch: main
- event: pull_request
branch: main
image: codeberg.org/foxy/tree-sitter:0.2.0
commands:
- tree-sitter init-config
# ISO Prolog
- cd grammars/prolog/
- tree-sitter generate --no-bindings
- tree-sitter test && tree-sitter parse examples/*.pl --quiet --time
# Problog
- cd ../../grammars/problog/
- tree-sitter generate --no-bindings
- tree-sitter test && tree-sitter parse examples/*.pl --quiet --time
# Syntax highlighting
- cd ../.. && tree-sitter test
diff:
when:
- event: push
branch: main
- event: pull_request
branch: main
image: bitnami/git
commands:
- |
if [ "$(git status --porcelain)" ]; then
git status --porcelain
exit 1
fi