diff --git a/.gitea/workflows/yamllint.yml b/.gitea/workflows/yamllint.yml index 0a63912..082225b 100644 --- a/.gitea/workflows/yamllint.yml +++ b/.gitea/workflows/yamllint.yml @@ -13,21 +13,14 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install linters + - name: Install linters system-wide + run: apk add --no-cache py3-yamllint py3-ansible-lint git bash + + - name: Run linters run: | - apk add --no-cache python3 py3-pip bash git - python3 -m venv venv # venv module is included - . venv/bin/activate - pip install --upgrade pip - pip install yamllint ansible-lint yamllint . - ansible-lint ../../ansible/playbooks + ansible-lint ansible/playbooks - - name: YAML lint - run: yamllint . - - - name: Ansible lint - run: ansible-lint infrastructure/playbooks build: runs-on: docker