Skip to content

Commit

Permalink
fix: update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
giem-git committed Oct 5, 2023
1 parent ca70752 commit 10d049b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 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
16 changes: 12 additions & 4 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ name: Ansible Lint
on:
pull_request:
types: [opened, reopened, synchronize]
env:
NAMESPACE: tosit
COLLECTION_NAME: tdp
ANSIBLE_COLLECTIONS_PATH: ${{ github.workspace }}
jobs:
ansible-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
dev/setup.sh
source venv/bin/activate
ansible-lint
with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Setup venv for linting
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 10d049b

Please sign in to comment.