Update CI ansible collection download path

main
Guido Grazioli 2022-01-13 20:08:41 +01:00
parent 4294746263
commit 8a9cb79fa4
1 changed files with 2 additions and 7 deletions

View File

@ -15,8 +15,6 @@ jobs:
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v2 uses: actions/checkout@v2
with:
path: ansible_collections/middleware_automation/keycloak
- name: Set up Python ${{ matrix.python_version }} - name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v1 uses: actions/setup-python@v1
@ -28,18 +26,15 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install yamllint 'molecule[docker]~=3.5.2' ansible-core flake8 ansible-lint voluptuous pip install yamllint 'molecule[docker]~=3.5.2' ansible-core flake8 ansible-lint voluptuous
- name: Create default collection path symlink - name: Create default collection path
run: | run: |
mkdir -p /home/runner/.ansible mkdir -p /home/runner/.ansible/collections/ansible_collections
ln -s /home/runner/work/middleware_automation/keycloak /home/runner/.ansible/collections
- name: Run sanity tests - name: Run sanity tests
run: ansible-test sanity --docker -v --color --python ${{ matrix.python_version }} run: ansible-test sanity --docker -v --color --python ${{ matrix.python_version }}
working-directory: ./ansible_collections/middleware_automation/keycloak
- name: Run molecule test - name: Run molecule test
run: molecule test --all run: molecule test --all
working-directory: ./ansible_collections/middleware_automation/keycloak
env: env:
PY_COLORS: '1' PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1' ANSIBLE_FORCE_COLOR: '1'