From de304c33fd274906613cd5fa4d169541e609a19a Mon Sep 17 00:00:00 2001 From: Kiri <56218513+kiriDevs@users.noreply.github.com> Date: Thu, 27 Jun 2024 18:59:32 +0200 Subject: [PATCH] ci: Lint YAML files after build --- .github/workflows/maven_build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/maven_build.yml b/.github/workflows/maven_build.yml index 1c4f4ec..654efbe 100644 --- a/.github/workflows/maven_build.yml +++ b/.github/workflows/maven_build.yml @@ -7,6 +7,9 @@ jobs: runs-on: ubuntu-latest steps: + - name: Install yamllint + run: sudo apt update && sudo apt install -y yamllint + - name: Checkout current state of the repo uses: actions/checkout@v4 @@ -27,3 +30,6 @@ jobs: with: name: kiriSMP_${{ github.sha }} path: target/ksmpplugin-*.jar + + - name: Lint emitted YAML files + run: 'yamllint -d "{document-start: disable}" target/classes/*.yml'