Compare commits

...

2 Commits

Author SHA1 Message Date
d0377f9528 ci: Add linting action
Some checks failed
Linting / yaml-lint (push) Failing after 7s
continuous-integration/drone/push Build is passing
Linting / ansible-lint (push) Failing after 9s
Signed-off-by: Noah Knegt <git@noahknegt.com>
2023-11-16 11:17:56 +01:00
7e736fa8a4 feat: Update the yaml linting config
Signed-off-by: Noah Knegt <git@noahknegt.com>
2023-11-16 11:17:44 +01:00
2 changed files with 28 additions and 1 deletions

26
.gitea/workflows/lint.yml Normal file
View File

@@ -0,0 +1,26 @@
name: Linting
on:
push:
pull_request:
env:
SSH_KEY: "${{ secrets.SSH_KEY }}"
jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Lint yaml
uses: ibiqlik/action-yamllint@v3
with:
config_file: .yamllint.yml
ansible-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Lint ansible code
uses: ansible/ansible-lint@v6

View File

@@ -4,10 +4,11 @@ extends: default
ignore: |
.yamllint.yml
.ansible-lint.yml
.gitea/workflows
rules:
truthy:
allowed-values: ['true', 'false']
allowed-values: ["true", "false"]
check-keys: false
level: error
line-length: disable