Add yamllint

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales 2023-03-29 14:33:29 +02:00
parent 0e56e52cbf
commit 95dbb0d0be
No known key found for this signature in database
GPG Key ID: 0069994DD7392198
5 changed files with 46 additions and 21 deletions

View File

@ -28,8 +28,6 @@ jobs:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '^1.19'
- name: Run tests
env:
LABEL: ${{ matrix.label }}

View File

@ -1,3 +1,4 @@
---
name: Unit tests
on:
push:

21
.yamllint Normal file
View File

@ -0,0 +1,21 @@
extends: default
rules:
# 80 chars should be enough, but don't fail if a line is longer
line-length:
max: 150
level: warning
# accept both key:
# - item
#
# and key:
# - item
indentation:
indent-sequences: whatever
truthy:
check-keys: false
document-start:
present: false

View File

@ -112,3 +112,8 @@ e2e-tests:
WITH DOCKER --allow-privileged
RUN ./scripts/e2e-tests.sh
END
yamllint:
FROM cytopia/yamllint
COPY . .
RUN yamllint .github/workflows/