Fix CI #17
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
--- | |
# This workflow requires a GALAXY_API_KEY secret present in the GitHub | |
# repository or organization. | |
name: CI | |
"on": | |
push: | |
branches: | |
- main | |
paths: | |
- "roles/idea/**" | |
workflow_dispatch: | |
jobs: | |
molecule: | |
runs-on: ubuntu-20.04 | |
name: Molecule test "idea" role | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: "Free Disk Space." | |
uses: jlumbroso/free-disk-space@main | |
with: | |
tool-cache: true | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies. | |
working-directory: roles/idea | |
run: pip3 install -r requirements.txt | |
- name: Install Ansible dependencies. | |
run: ansible-galaxy install -r requirements.yml | |
- name: Install Ansible dependencies specific to role. | |
working-directory: roles/idea | |
run: ansible-galaxy install -r requirements.yml | |
- name: Run molecule | |
working-directory: roles/idea | |
run: "molecule test" | |
... |