Skip to content

Commit

Permalink
fix: generate integration_config
Browse files Browse the repository at this point in the history
Signed-off-by: gardar <[email protected]>
  • Loading branch information
gardar committed Jan 15, 2024
1 parent a97b414 commit 9c309f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ansible-test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,15 @@ jobs:
testing-type: integration
target: ${{ matrix.targets.test }}
coverage: ${{ inputs.coverage }}
pre-test-cmd: |
{
cat <<EOF > tests/integration/integration_config.yml
org_name: "${{ secrets.ANSIBLE_TEST_ORG_NAME }}"
grafana_cloud_api_key: "${{ secrets.ANSIBLE_TEST_CLOUD_API_KEY }}"
grafana_api_key: "${{ secrets.ANSIBLE_TEST_GRAFANA_API_KEY }}"
grafana_url: "${{ secrets.ANSIBLE_GRAFANA_URL }}"
test_stack_name: "${{ secrets.ANSIBLE_TEST_CI_STACK }}"
EOF
}
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 9c309f0

Please sign in to comment.