From 72bbec8e4654bf43e524cdd2ba13461973ebcf7c Mon Sep 17 00:00:00 2001 From: gardar Date: Mon, 15 Jan 2024 18:33:50 +0000 Subject: [PATCH] fix: generate integration_config Signed-off-by: gardar --- .github/workflows/ansible-test-integration.yml | 7 +++++++ .github/workflows/full-integration-test.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ansible-test-integration.yml b/.github/workflows/ansible-test-integration.yml index ff085e84..dd280502 100644 --- a/.github/workflows/ansible-test-integration.yml +++ b/.github/workflows/ansible-test-integration.yml @@ -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 }} @@ -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 }}" diff --git a/.github/workflows/full-integration-test.yml b/.github/workflows/full-integration-test.yml index b4885101..854dce23 100644 --- a/.github/workflows/full-integration-test.yml +++ b/.github/workflows/full-integration-test.yml @@ -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"]'