molecule #204
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
--- | |
name: molecule | |
on: | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: "0 5 * * 5" | |
defaults: | |
run: | |
working-directory: 'nephelaiio.k8s' | |
jobs: | |
molecule: | |
name: molecule | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
scenario: | |
- default | |
- argocd | |
- longhorn | |
- mysql | |
- zalando | |
- strimzi | |
- opensearch | |
include: | |
- image: v1.26.3 | |
- image: v1.25.8 | |
- image: v1.24.12 | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v3 | |
with: | |
path: 'nephelaiio.k8s' | |
- name: Set up python 3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: make install | |
- name: Install helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: 'latest' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
id: helm | |
- name: Install kind | |
uses: engineerd/[email protected] | |
with: | |
version: "v0.18.0" | |
skipClusterCreation: true | |
- name: Run molecule tests. | |
run: poetry run -- molecule test -s ${{ matrix.scenario }} | |
env: | |
PY_COLORS: '1' | |
ANSIBLE_FORCE_COLOR: '1' | |
K8S_RELEASE: ${{ matrix.image }} | |
HELM_BIN: ${{ steps.helm.outputs.helm-path }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |