Skip to content

Commit

Permalink
👷 feat(CI): add yaml lint to the CI (#3)
Browse files Browse the repository at this point in the history
* 👷 feat(CI): add yaml lint to the CI

* ⚗️ test: check the functionality of yaml linter

* ⚗️ test: remove empty line

* 💚 refactor: trigger the CI on push on main branch

* 🔧 feat: add configuration for yamllint
  • Loading branch information
mostafaghadimi authored Apr 6, 2024
1 parent 4a44df2 commit 3c00514
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
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 Format Check

on:
push:
branches:
- main
paths:
- 'roadmap.yaml'
pull_request:
branches:
- '**'
paths:
- 'roadmap.yaml'

jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install yamllint
run: pip install yamllint

- name: Run yamllint
run: yamllint roadmap.yaml

4 changes: 4 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rules:
empty-lines:
max: 1

0 comments on commit 3c00514

Please sign in to comment.