diff --git a/.github/workflows/all_green_check.yml b/.github/workflows/all_green_check.yml index f594c597..a64d33dc 100644 --- a/.github/workflows/all_green_check.yml +++ b/.github/workflows/all_green_check.yml @@ -1,9 +1,9 @@ --- name: all_green -concurrency: - group: ${{ github.head_ref }} - cancel-in-progress: true +# concurrency: +# # group: ${{ github.head_ref }} +# cancel-in-progress: true on: # yamllint disable-line rule:truthy pull_request: @@ -16,6 +16,11 @@ on: # yamllint disable-line rule:truthy - 'stable-*' tags: - '*' + push: + branches: + - 'tests-integration-*' + tags: + - '*' jobs: linters: @@ -24,6 +29,8 @@ jobs: uses: ./.github/workflows/sanity.yml # use the callable sanity job to run tests units: uses: ./.github/workflows/units.yml # use the callable units job to run tests + integrations: + uses: ./.github/workflows/integration.yml all_green: if: ${{ always() }} needs: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index ea057a14..e7ffa891 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,5 +1,5 @@ --- -name: integration tests +name: integration_tests on: [workflow_call] # allow this workflow to be called from other workflows diff --git a/.github/workflows/integration_source.yml b/.github/workflows/integration_source.yml index e176806a..5df7c729 100644 --- a/.github/workflows/integration_source.yml +++ b/.github/workflows/integration_source.yml @@ -107,16 +107,10 @@ jobs: - name: Print the python dependencies run: python3 -m pip list - - name: Create integration_config.yml - run: >- - echo "sn_host: ${{ env.SN_HOST }}" >> ${{ steps.identify.outputs.collection_path }}/tests/integration/integration_config.yml - echo "sn_username: ${{ env.SN_USERNAME }}" >> ${{ steps.identify.outputs.collection_path }}/tests/integration/integration_config.yml - echo "sn_password: ${{ env.SN_PASSWORD }}" >> ${{ steps.identify.outputs.collection_path }}/tests/integration/integration_config.yml + - name: Run api integration tests + run: ansible-test integration api + working-directory: ${{ steps.identify.outputs.collection_path }} env: SN_HOST: ${{ secrets.sn_host }} SN_USERNAME: ${{ secrets.sn_username }} SN_PASSWORD: ${{ secrets.sn_password }} - - - name: Run api integration tests - run: ansible-test integration api - working-directory: ${{ steps.identify.outputs.collection_path }}