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"