Skip to content

Commit

Permalink
ci: migrate molecule workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Jan 19, 2024
1 parent bc745b1 commit 24b76d4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 35 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,36 @@ jobs:
ansible-core-version: ${{ matrix.ansible_version }}
target-python-version: ${{ matrix.python_version }}
testing-type: integration

molecule:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
strategy:
fail-fast: false
matrix:
grafana_version: ["9.5.14", "8.5.27", "10.2.2"]
ansible_version: ["stable-2.15", "stable-2.16", "devel"]
python_version: ["3.10"]
services:
grafana:
image: grafana/grafana:${{ matrix.grafana_version }}
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10

- name: Install dependencies
run: |
python -m pip install --no-cache-dir --upgrade pip
pip install molecule[ansible] molecule-docker
- name: Test with molecule
run: |
molecule --version
molecule test
35 changes: 0 additions & 35 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 24b76d4

Please sign in to comment.