Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/yaml-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: YAML Lint
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"

jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v2
- name: Yamllint Github Action
uses: karancode/yamllint-github-action@v2.0.0
with:
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Set up Python 3.8
# uses: actions/setup-python@v2
# with:
# python-version: 3.8
# architecture: 'x64'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install yamllint
# - name: Validate Manifests
# run: ./hack/validate_yaml.sh
3 changes: 3 additions & 0 deletions hack/validate_yaml.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

yamllint . -f github