Skip to content

Commit

Permalink
temporary allow running tests branches
Browse files Browse the repository at this point in the history
  • Loading branch information
tupyy committed Mar 21, 2024
1 parent 3c455e8 commit c1270c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/all_green_check.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -16,6 +16,11 @@ on: # yamllint disable-line rule:truthy
- 'stable-*'
tags:
- '*'
push:
branches:
- 'tests-integration-*'
tags:
- '*'

jobs:
linters:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: integration tests
name: integration_tests

on: [workflow_call] # allow this workflow to be called from other workflows

Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/integration_source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,12 @@ jobs:
run: python3 -m pip list

- name: Create integration_config.yml
run: >-
run: |
touch ${{ steps.identify.outputs.collection_path }}/tests/integration/integration_config.yml
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
env:
SN_HOST: ${{ secrets.sn_host }}
SN_USERNAME: ${{ secrets.sn_username }}
SN_PASSWORD: ${{ secrets.sn_password }}
cat ${{ steps.identify.outputs.collection_path }}/tests/integration/integration_config.yml
- name: Run api integration tests
run: ansible-test integration api
Expand Down

0 comments on commit c1270c6

Please sign in to comment.