Add MacOS support for Intel and Apple Silicon #1125
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: Check code style and quality | |
| on: | |
| pull_request: | |
| paths: | |
| - ansible/** | |
| - utils/** | |
| push: | |
| paths: | |
| - ansible/** | |
| - utils/** | |
| jobs: | |
| ansible-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install Ansible requirements | |
| run: | | |
| rm -rf ~/.ansible | |
| pip install ansible-playbook-grapher ansible ansible-lint | |
| sudo apt-get --no-install-recommends -y install graphviz | |
| ansible-galaxy collection install -r ansible/requirements.yml --force | |
| - name: Run ansible-lint | |
| working-directory: ./ansible | |
| env: | |
| ANSIBLE_CONFIG: ../ansible.cfg | |
| run: ansible-lint | |
| - name: Retrieve task list from playbook | |
| env: | |
| ANSIBLE_LOCALHOST_WARNING: False | |
| run: | | |
| mkdir artifacts | |
| ansible-playbook --list-tasks ansible/site.yml > artifacts/list-tasks-site | |
| - name: Upload Ansible artifacts | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: ansible-artifacts | |
| path: artifacts | |
| yaml-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Run yaml-lint | |
| uses: ibiqlik/action-yamllint@v3 | |
| with: | |
| config_file: ansible/.yamllint | |
| shell-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Run ShellCheck | |
| uses: ludeeus/action-shellcheck@master | |
| env: | |
| SHELLCHECK_OPTS: -x -s bash -e SC1091 |