-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 feat(CI): add yaml lint to the CI (#3)
* 👷 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
1 parent
4a44df2
commit 3c00514
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
rules: | ||
empty-lines: | ||
max: 1 | ||
|