Skip to content

Commit

Permalink
fix: generate integration_config
Browse files Browse the repository at this point in the history
Signed-off-by: gardar <gardar@users.noreply.github.com>
  • Loading branch information
gardar committed Jan 15, 2024
1 parent a97b414 commit 72bbec8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ansible-test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
steps:
- name: "Perform ${{ matrix.targets.test }} integration test with ansible-test"
uses: ansible-community/ansible-test-gh-action@release/v1
secrets: inherit
with:
ansible-core-version: ${{ matrix.ansible-core-versions }}
target-python-version: ${{ matrix.target-python-versions }}
Expand All @@ -41,5 +42,11 @@ jobs:
testing-type: integration
target: ${{ matrix.targets.test }}
coverage: ${{ inputs.coverage }}
pre-test-cmd: |-
echo -e "org_name: ${{ secrets.ANSIBLE_TEST_ORG_NAME }} \n\
grafana_cloud_api_key: ${{ secrets.ANSIBLE_TEST_CLOUD_API_KEY }} \n\
grafana_api_key: ${{ secrets.ANSIBLE_TEST_GRAFANA_API_KEY }} \n\
grafana_url: ${{ secrets.ANSIBLE_GRAFANA_URL }} \n\
test_stack_name: ${{ secrets.ANSIBLE_TEST_CI_STACK }}" > tests/integration/integration_config.yml
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
1 change: 1 addition & 0 deletions .github/workflows/full-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
uses: ./.github/workflows/ansible-test-integration.yml
needs: discover-ansible-tests
if: needs.discover-ansible-tests.outputs.integration-tests != '[]'
secrets: inherit
with:
targets: ${{ needs.discover-ansible-tests.outputs.integration-tests }}
ansible-core-versions: '["stable-2.14","stable-2.15","stable-2.16"]'
Expand Down

0 comments on commit 72bbec8

Please sign in to comment.