Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 feat(CI): add yaml lint to the CI (#3) #4

Merged
merged 5 commits into from
Apr 6, 2024
Merged
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 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