mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 05:08:41 +08:00
feat: add a GitHub action to lint the YAML files
Lint some YAML Add a `.yamllint` config file
This commit is contained in:
parent
32bf92c5c3
commit
ca6b11b425
6 changed files with 68 additions and 48 deletions
12
.github/workflows/lint.yml
vendored
Normal file
12
.github/workflows/lint.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
name: ❄️ Lint
|
||||||
|
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
yamllint:
|
||||||
|
name: 🍺 YAML
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: 🧹 YAML Lint
|
||||||
|
uses: ibiqlik/action-yamllint@v3
|
8
.yamllint
Normal file
8
.yamllint
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
document-start: disable
|
||||||
|
line-length: disable
|
||||||
|
truthy: disable
|
Loading…
Reference in a new issue