diff --git a/.github/workflows/yaml_lint.yaml b/.github/workflows/yaml_lint.yaml new file mode 100644 index 0000000..7dcfd17 --- /dev/null +++ b/.github/workflows/yaml_lint.yaml @@ -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 + diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..36bcc01 --- /dev/null +++ b/.yamllint @@ -0,0 +1,4 @@ +rules: + empty-lines: + max: 1 +