correct roles readme document #51
This file contains 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: Run ibm.power_hmc collection linting tests | |
# run sanity test during pull request to dev-collection | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: [ dev-collection ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
module-linting-test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: ['3.10', '3.11'] | |
name: run module linting | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install linting test requirements | |
run: | | |
python -m pip install --upgrade pip | |
make install-ansible | |
make install-sanity-test-requirements | |
make install-ansible-lint | |
- name: build and install new content as collection | |
run: | | |
make prep-collection | |
- name: run linter | |
run: make module-lint | |
working-directory: /home/runner/.ansible/collections/ansible_collections/ibm/power_hmc | |
- name: run install-ansible | |
run: make ansible-lint |