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
|
Reference in New Issue
Block a user