ci: Add PR Linting
All checks were successful
Lint (Pull Request) / lint (pull_request) Successful in 8s
All checks were successful
Lint (Pull Request) / lint (pull_request) Successful in 8s
ref: #6
This commit is contained in:
28
.gitea/workflows/pull_request.yaml
Normal file
28
.gitea/workflows/pull_request.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
name: Lint (Pull Request)
|
||||||
|
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request: {}
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
# - name: Enable Matcher Service
|
||||||
|
# run: |
|
||||||
|
# echo "NFC_PROBLEM_MATCHER=${GITHUB_REF_NAME}";
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install YAMLLint
|
||||||
|
run: pip install yamllint
|
||||||
|
|
||||||
|
- name: Run YAMLLint
|
||||||
|
run: |
|
||||||
|
echo "NFC_PROBLEM_MATCHER_TYPE=YAML-Lint"
|
||||||
|
yamllint -f github . || true
|
Reference in New Issue
Block a user