Skip to content

Merge pull request #648 from ansible-collections/remove-f-string #104

Merge pull request #648 from ansible-collections/remove-f-string

Merge pull request #648 from ansible-collections/remove-f-string #104

Workflow file for this run

---
name: google.cloud.gcloud
on:
push:
paths:
- roles/gcloud/**
- .github/workflows/gcloud.yml
- molecule/gcloud/**
pull_request:
paths:
- roles/gcloud/**
- .github/workflows/gcloud.yml
- molecule/gcloud/**
jobs:
molecule:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
strategy:
fail-fast: true
matrix:
molecule_playbook:
- archive_playbook.yml
- package_playbook.yml
collection_role:
- gcloud
steps:
- name: Check out code
uses: actions/checkout@v4
with:
path: ansible_collections/google/cloud
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg \
--dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
python -m pip install --upgrade pip
pip install molecule-plugins[docker] yamllint ansible ansible-lint docker
- name: Run role test
working-directory: ansible_collections/google/cloud
run: >-
molecule --version &&
ansible --version &&
MOLECULE_PLAYBOOK=${{ matrix.molecule_playbook }}
MOLECULE_NO_LOG="false"
molecule --debug test -s ${{ matrix.collection_role }}