diff --git a/.forgejo/workflows/renovate-config-validation.yaml b/.forgejo/workflows/renovate-config-validation.yaml new file mode 100644 index 0000000..96a34e1 --- /dev/null +++ b/.forgejo/workflows/renovate-config-validation.yaml @@ -0,0 +1,24 @@ +--- +name: Checking Renovate configuration + +on: # yamllint disable-line rule:truthy + pull_request: + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Cache npm (renovate) + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-renovate + restore-keys: | + ${{ runner.os }}-npm-renovate- + - name: Validate Renovate configuration + uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.1.1 + env: + NPM_CONFIG_CACHE: ~/.npm +... diff --git a/.forgejo/workflows/yamllint.yaml b/.forgejo/workflows/yamllint.yaml new file mode 100644 index 0000000..1b5cb26 --- /dev/null +++ b/.forgejo/workflows/yamllint.yaml @@ -0,0 +1,18 @@ +--- +name: Checking yaml + +on: # yamllint disable-line rule:truthy + pull_request: + +jobs: + yamllint: + name: Run yamllint + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Run YAML linter + uses: bewuethr/yamllint-action@v1 + with: + config-file: .yamllint.yaml +... diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000..79bc82f --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,30 @@ +--- +ignore: | + .platformio + secrets.yaml + +rules: + braces: enable + brackets: enable + colons: enable + commas: enable + comments: enable + comments-indentation: enable + document-end: enable + document-start: enable + empty-lines: + max: 1 + empty-values: disable + hyphens: enable + indentation: enable + key-duplicates: enable + key-ordering: disable + line-length: + max: 100 + new-line-at-end-of-file: enable + new-lines: enable + octal-values: enable + quoted-strings: disable + trailing-spaces: enable + truthy: enable +...