Skip to content

Merge pull request #697 from ansible/update-service-image-tag #1804

Merge pull request #697 from ansible/update-service-image-tag

Merge pull request #697 from ansible/update-service-image-tag #1804

name: Molecule Tests (Kind)
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- README.md
- CONTRIBUTING.md
- 'docs/**'
pull_request:
branches:
- main
paths-ignore:
- README.md
- CONTRIBUTING.md
- 'docs/**'
jobs:
build:
name: Run Molecule Tests (Kind)
timeout-minutes: 60
runs-on: ubuntu-24.04
env:
OPERATOR_IMAGE: ${{ vars.TESTING_OPERATOR_IMAGE }}
OPERATOR_PULL_POLICY: ${{ vars.TESTING_OPERATOR_PULL_POLICY }}
DOCKER_CONFIG_JSON: ${{ secrets.TESTING_DOCKER_CONFIG_JSON }}
DOCKER_API_VERSION: "1.41"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install -r molecule/requirements.txt
- name: Install Collections
run: |
ansible-galaxy collection install -r molecule/requirements.yml
- name: Run Molecule
env:
MOLECULE_VERBOSITY: 0
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
run: |
sudo rm -f $(which kustomize)
make kustomize
KUSTOMIZE_PATH=$(readlink -f bin/kustomize) molecule test -s kind
- name: Report to slack
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"text": "Lightspeed Operator Molecule Tests (Kind): ${{ job.status }}\nLink: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
if: ${{ always() }}