Skip to content

Commit

Permalink
ci: use make for linting
Browse files Browse the repository at this point in the history
Signed-off-by: Zakhar Bessarab <[email protected]>
  • Loading branch information
zekker6 committed Feb 22, 2024
1 parent fd21c35 commit 68f8415
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,27 @@
name: 'Lint'
on:
pull_request: {}
push: {}
pull_request: { }
push: { }

jobs:
lint:
name: 'Lint'
runs-on: ubuntu-latest
container:
image: python:3.9-alpine
image: python:3.11-alpine
steps:
- name: 'Checkout'
uses: actions/checkout@v3

- name: Setup ansible
run: |
apk add --update --no-cache --virtual build_dependencies gcc musl-dev libffi-dev openssl-dev rust cargo
apk add --update --no-cache --virtual build_dependencies gcc musl-dev libffi-dev openssl-dev rust cargo make
pip install --no-cache-dir ansible-core
ansible-galaxy collection install community.general
make init-venv
- name: 'Yamllint'
uses: karancode/yamllint-github-action@master
with:
yamllint_file_or_dir: 'roles'
yamllint_strict: false
yamllint_comment: false

- name: Checkout
uses: actions/checkout@v3

- name: "Ansible lint playbooks"
uses: ansible/[email protected]
with:
path: "playbooks/*"

- name: "Ansible lint roles"
uses: ansible/[email protected]
with:
path: "roles/*"
- name: Lint
run: |
make lint

0 comments on commit 68f8415

Please sign in to comment.