Use sap_storage_setup role in qe-sap-deployment #767
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ansible | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| paths: | |
| - 'ansible/**' | |
| - 'requirements.txt' | |
| - '.github/workflows/ansible.yml' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Important: This sets up your GITHUB_WORKSPACE environment variable | |
| - uses: actions/checkout@v2 | |
| - name: Install all requirements | |
| run: | | |
| python3 -m pip install --upgrade -r requirements.txt | |
| # 25.1.3 is the newest version that support ansible-core 2.16.8 we are using right now | |
| python3 -m pip install ansible-lint==25.1.3 | |
| ansible-galaxy install -r requirements.yml | |
| - name: Run ansible static tests | |
| run: | | |
| make -n static-ansible | |
| make SHELL='sh -x' static-ansible | |
| - name: Get all changed Ansible files | |
| id: changed-markdown-files | |
| uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46 | |
| with: | |
| files: | | |
| ansible/playbooks/ | |
| - name: Run ansible-lint only on changed files | |
| if: steps.changed-markdown-files.outputs.any_changed == 'true' | |
| env: | |
| ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }} | |
| run: | | |
| ansible-lint --offline ${ALL_CHANGED_FILES} |