mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
* rm Helm chart starter directory
* rm Helm release playbook
* rm Helm install from docs
* rm Helm chart workflows
* rm Helm starter from yamllint
* rm Helm targets from Makefile
* Revert "rm Helm targets from Makefile"
This reverts commit da38360168.
* remove helm from Makefile
* rm kubectl-slice and yp from Makefile
70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
---
|
|
|
|
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
jobs:
|
|
molecule:
|
|
runs-on: ubuntu-latest
|
|
name: molecule
|
|
strategy:
|
|
matrix:
|
|
ansible_args:
|
|
- --skip-tags=replicas
|
|
- -t replicas
|
|
env:
|
|
DOCKER_API_VERSION: "1.41"
|
|
DEBUG_OUTPUT_DIR: /tmp/awx_operator_molecule_test
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.8"
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
pip install -r molecule/requirements.txt
|
|
|
|
- name: Install Collections
|
|
run: |
|
|
ansible-galaxy collection install -r molecule/requirements.yml
|
|
|
|
- name: Run Molecule
|
|
env:
|
|
MOLECULE_VERBOSITY: 3
|
|
PY_COLORS: '1'
|
|
ANSIBLE_FORCE_COLOR: '1'
|
|
STORE_DEBUG_OUTPUT: true
|
|
run: |
|
|
sudo rm -f $(which kustomize)
|
|
make kustomize
|
|
KUSTOMIZE_PATH=$(readlink -f bin/kustomize) molecule test -s kind -- ${{ matrix.ansible_args }}
|
|
|
|
- name: Upload artifacts for failed tests if Run Molecule fails
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: awx_operator_molecule_test
|
|
path: ${{ env.DEBUG_OUTPUT_DIR }}
|
|
no-log:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Check no_log statements
|
|
run: |
|
|
set +e
|
|
no_log=$(grep -nr ' no_log:' roles | grep -v '"{{ no_log }}"')
|
|
if [ -n "${no_log}" ]; then
|
|
echo 'Please update the following no_log statement(s) with the "{{ no_log }}" value'
|
|
echo "${no_log}"
|
|
exit 1
|
|
fi
|
|
nox-sessions:
|
|
uses: ./.github/workflows/reusable-nox.yml
|