Compare commits
2 Commits
a65d96c984
...
d0377f9528
Author | SHA1 | Date | |
---|---|---|---|
d0377f9528 | |||
7e736fa8a4 |
26
.gitea/workflows/lint.yml
Normal file
26
.gitea/workflows/lint.yml
Normal 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
|
@@ -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
|
||||
|
Reference in New Issue
Block a user