From cbb676c047a845329efd147ef430fdf2885e9400 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Mon, 10 Jun 2024 18:14:53 -0400 Subject: [PATCH] [CONFIG] [Github Actions] new tool added: yamllint --- .github/workflows/yamllint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..e88812b --- /dev/null +++ b/.github/workflows/yamllint.yml @@ -0,0 +1,23 @@ +--- +name: YAML lint + +on: # yamllint disable-line rule:truthy + push: + branches: ["main", "develop", "feature/*"] + pull_request: + branches: ["main"] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + + - name: Install yamllint + run: pip install yamllint + + - name: Lint YAML files + run: > + yamllint --strict . + && echo '✔ Your code looks good.'