Skip to content

Commit d60383e

Browse files
committed
ci: Add PR Linting
ref: #6
1 parent 9727594 commit d60383e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.gitea/workflows/pull_request.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
3+
name: Lint (Pull Request)
4+
5+
6+
on:
7+
pull_request: {}
8+
9+
10+
jobs:
11+
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
# - name: Enable Matcher Service
17+
# run: |
18+
# echo "NFC_PROBLEM_MATCHER=${GITHUB_REF_NAME}";
19+
20+
- uses: actions/checkout@v3
21+
22+
- name: Install YAMLLint
23+
run: pip install yamllint
24+
25+
- name: Run YAMLLint
26+
run: |
27+
echo "NFC_PROBLEM_MATCHER_TYPE=YAML-Lint"
28+
yamllint -f github . || true

0 commit comments

Comments
 (0)