Skip to content

Commit

Permalink
🧪 test collection with ansible-test-gh-action
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Sep 16, 2024
1 parent 1140981 commit 828f27e
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 828f27e

Please sign in to comment.