From 3a74cc5a74e7d5bf4cbeecceae8714f831e0ff51 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Tue, 12 Oct 2021 18:58:00 -0400 Subject: Add awx-operator CI check --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to '.github/workflows/ci.yml') 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 -- cgit v1.2.3