From d0377f9528c4b8db049aca62b1c52a64efe4e01a Mon Sep 17 00:00:00 2001 From: Noah Knegt Date: Thu, 16 Nov 2023 11:17:56 +0100 Subject: [PATCH] ci: Add linting action Signed-off-by: Noah Knegt --- .gitea/workflows/lint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/lint.yml diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml new file mode 100644 index 0000000..3b3780a --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -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