Skip to content

AMW-250 Fix common_criteria_demo on Olympus #5

AMW-250 Fix common_criteria_demo on Olympus

AMW-250 Fix common_criteria_demo on Olympus #5

Workflow file for this run

---
name: CI
"on":
push:
branches:
- main
pull_request:
repository_dispatch:
jobs:
molecule:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.10"]
steps:
- name: Check out code
uses: actions/checkout@v2
with:
path: ansible_collections/middleware_automation/common_criteria-demo
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
- name: Install yamllint, ansible and molecule
run: |
python -m pip install --upgrade pip
pip install yamllint 'molecule[docker]~=3.5.2' ansible-core flake8 ansible-lint voluptuous
- name: Create default collection path
run: |
mkdir -p /home/runner/.ansible/collections/ansible_collections
- name: Install ansible-lint custom rules
uses: actions/checkout@v2
with:
repository: ansible-middleware/ansible-lint-custom-rules
path: ansible_collections/ansible-lint-custom-rules/
- name: Run molecule test
run: |
ansible-galaxy collection install -r molecule/requirements.yml
molecule test --all
env:
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
working-directory: ./ansible_collections/middleware_automation/common_criteria-demo