From dc12257f3cc3a54d34caafde8e0822c9010c10b3 Mon Sep 17 00:00:00 2001 From: softwaredevelop <61334390+softwaredevelop@users.noreply.github.com> Date: Fri, 30 Aug 2024 19:10:16 +0200 Subject: [PATCH] ci: Add yamllint workflow for YAML linting --- .github/workflows/yamllint.yml | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/yamllint.yml diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml new file mode 100644 index 0000000..91db543 --- /dev/null +++ b/.github/workflows/yamllint.yml @@ -0,0 +1,44 @@ +--- +name: yamllint + +run-name: Yamllint + +on: + pull_request: + branches: + - "main" + paths: + - "**/*.yaml" + - "**/*.yml" + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + skip_duplicate_actions: + name: Skip Duplicate Actions + runs-on: ubuntu-latest + steps: + - uses: fkirc/skip-duplicate-actions@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + cancel_others: true + concurrent_skipping: never + + yamllint: + name: Yamllint + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Call Dagger Function + uses: dagger/dagger-for-github@v6 + with: + args: check --source=. stdout + module: github.com/softwaredevelop/daggerverse/yamllint@main + verb: call + version: "latest"