Adding GitHub action for linting

This commit is contained in:
Filipe Spencer Lopes 2021-03-09 14:16:42 +01:00
parent 65b0c24ed0
commit c1765618c6

21
.github/workflows/yamllinting.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Yaml Lint
on: [push]
jobs:
lintDataFiles:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: yml/*.yaml
config_file: .yamllint.yml
lintTemplate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: YML-Template.yaml
config_file: .yamllint.yml