From d60383e6f6b3028c7ca9afd124334d9846add159 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 12 Jul 2025 19:15:17 +0930 Subject: [PATCH] ci: Add PR Linting ref: #6 --- .gitea/workflows/pull_request.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/pull_request.yaml diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml new file mode 100644 index 0000000..bf2819e --- /dev/null +++ b/.gitea/workflows/pull_request.yaml @@ -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