From fb31e2aa5372bb13dae9f0fe758e3731faee9143 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 24 Dec 2025 07:30:27 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Add=20Ansible=20linting=20w?= =?UTF-8?q?orkflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a new GitHub Actions workflow to automate Ansible linting, ensuring code quality and consistency. --- .gitea/workflows/ansible-lint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/ansible-lint.yml diff --git a/.gitea/workflows/ansible-lint.yml b/.gitea/workflows/ansible-lint.yml new file mode 100644 index 0000000..d94cb89 --- /dev/null +++ b/.gitea/workflows/ansible-lint.yml @@ -0,0 +1,28 @@ +# .github/workflows/ansible-lint.yml +name: ansible-lint + +on: [pull_request, issues, push] + +jobs: + build: + name: Ansible Lint # Naming the build is important to use it as a status check + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + github-server-url: ${{ vars.GIT_SERVER_URL }} + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.14" + + - name: Install ansible-lint + run: | + python -m pip install --upgrade pip + pip install ansible ansible-lint + + - name: Run ansible-lint + run: | + ansible-lint \ No newline at end of file