update cicd
This commit is contained in:
@@ -12,15 +12,22 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install linters system-wide
|
- name: Install linters
|
||||||
run: apk add --no-cache py3-yamllint py3-ansible-lint git bash
|
run: |
|
||||||
|
apk add --no-cache python3 py3-pip bash git
|
||||||
|
python3 -m venv venv
|
||||||
|
. venv/bin/activate
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install yamllint ansible-lint
|
||||||
|
|
||||||
- name: Run linters
|
- name: Run linters
|
||||||
run: |
|
run: |
|
||||||
|
. venv/bin/activate
|
||||||
yamllint .
|
yamllint .
|
||||||
ansible-lint ansible/playbooks
|
ansible-lint ansible/playbooks
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|||||||
Reference in New Issue
Block a user