summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorShane McDonald <me@shanemcd.com>2021-10-13 00:58:00 +0200
committerShane McDonald <me@shanemcd.com>2021-10-13 00:59:24 +0200
commit3a74cc5a74e7d5bf4cbeecceae8714f831e0ff51 (patch)
tree5246bb13b1a6a80477169c02ebcd35e78a0ff4f9 /.github/workflows/ci.yml
parentAllow for building headless mode (diff)
downloadawx-3a74cc5a74e7d5bf4cbeecceae8714f831e0ff51.tar.xz
awx-3a74cc5a74e7d5bf4cbeecceae8714f831e0ff51.zip
Add awx-operator CI check
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ce0673c2b6..ca9de5ee7a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -175,3 +175,41 @@ jobs:
run: |
docker run -u $(id -u) --rm -v ${{ github.workspace}}:/awx_devel/:Z \
--workdir=/awx_devel ghcr.io/${{ github.repository_owner }}/awx_devel:${{ env.BRANCH }} make ui-test
+ awx-operator:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout awx
+ uses: actions/checkout@v2
+ with:
+ path: awx
+
+ - name: Checkout awx-operator
+ uses: actions/checkout@v2
+ with:
+ repository: ansible/awx-operator
+ path: awx-operator
+
+ - name: Install playbook dependencies
+ run: |
+ python3 -m pip install docker
+
+ - name: Build AWX image
+ working-directory: awx
+ run: |
+ ansible-playbook -v tools/ansible/build.yml \
+ -e headless=yes \
+ -e awx_image=awx \
+ -e awx_image_tag=ci \
+ -e ansible_python_interpreter=$(which python3)
+
+ - name: Run test deployment with awx-operator
+ working-directory: awx-operator
+ run: |
+ python3 -m pip install -r molecule/requirements.txt
+ ansible-galaxy collection install -r molecule/requirements.yml
+ sudo rm -f $(which kustomize)
+ make kustomize
+ KUSTOMIZE_PATH=$(readlink -f bin/kustomize) molecule test -s kind
+ env:
+ AWX_TEST_IMAGE: awx
+ AWX_TEST_VERSION: ci