Skip to content

Commit

Permalink
Add lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyrZotov committed Nov 20, 2023
1 parent 6dd672c commit 81751f6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ansible-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,15 @@ jobs:
- name: Install ansible-core stable-${{ env.ANSIBLE_FOR_UNIT_TESTS }}
run: pip install https://github.com/ansible/ansible/archive/stable-${{ env.ANSIBLE_FOR_UNIT_TESTS }}.tar.gz --disable-pip-version-check

- name: ansible-lint version
run: ansible-lint --version

- name: Run ansible-test units
run: ansible-test units -v --docker --redact --python ${{ env.PYTHON_VERSION }}
run: ansible-test units -v --docker --redact --python ${{ env.PYTHON_VERSION }}

ansible-lint:
name: Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.COLLECTION_PATH }}
steps:
- name: run-ansible-lint
uses: ansible/ansible-lint@v6.22.0

0 comments on commit 81751f6

Please sign in to comment.