Skip to content

Commit

Permalink
fix: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
giem-git committed Oct 5, 2023
1 parent 2aa9186 commit 4cc923c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exclude_paths:
- tdp_lib_dag/
- tdp_vars_defaults/
- tdp_vars_schema/
- venv

warn_list: # or 'skip_list' to silence them completely
- experimental # all rules tagged as experimental
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
name: Ansible Lint
on:
push
env:
NAMESPACE: tosit
COLLECTION_NAME: tdp
ANSIBLE_COLLECTION_PATH: ${{ github.workspace }}
jobs:
ansible-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
dev/setup.sh
source venv/bin/activate
git branch --show-current
ls -l plugins/modules
ls -l plugins/action
ansible-lint
with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- run: dev/setup.sh
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Run ansible-lint
run: source venv/bin/activate && ansible-lint
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

0 comments on commit 4cc923c

Please sign in to comment.