From 828f27e99e2d6930c0f32bffbf8f0400848599b5 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Mon, 16 Sep 2024 03:08:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20test=20collection=20with=20`ansi?= =?UTF-8?q?ble-test-gh-action`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8b8c9c34428..118e218222d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -182,17 +182,26 @@ jobs: timeout-minutes: 30 strategy: fail-fast: false + matrix: + ansible: + - stable-2.17 + - devel steps: - - uses: actions/checkout@v4 + - name: Perform sanity testing + uses: ansible-community/ansible-test-gh-action@release/v1 with: - show-progress: false - - # The containers that GitHub Actions use have Ansible installed, so upgrade to make sure we have the latest version. - - name: Upgrade ansible-core - run: python3 -m pip install --upgrade ansible-core - - - name: Run sanity tests - run: make test_collection_sanity + ansible-core-version: ${{ matrix.ansible }} + codecov-token: ${{ secrets.CODECOV_TOKEN }} + collection-root: awx_collection + pre-test-cmd: >- + ansible-playbook + -i localhost, + awx_collection/tools/template_galaxy.yml + -e collection_package=awx + -e collection_namespace=awx + -e collection_version=1.0.0 + -e '{"awx_template_version": false}' + testing-type: sanity collection-integration: name: awx_collection integration