Compare commits

..

1 commit

Author SHA1 Message Date
c64b4f0b63
Init
Some checks failed
Checking yaml / Run yamllint (pull_request) Failing after 8s
Checking Renovate configuration / validate (pull_request) Failing after 1m36s
Build talosctl+talhelper+sops image (push on main only) / build (push) Has been cancelled
2025-11-24 16:25:31 +11:00
3 changed files with 72 additions and 0 deletions

View file

@ -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
...

View file

@ -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
...

30
.yamllint.yaml Normal file
View file

@ -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
...