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 906dee5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
32 changes: 20 additions & 12 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,20 +16,28 @@ on: # yamllint disable-line rule:truthy
- 'stable-*'
tags:
- '*'
push:
branches:
- 'tests-integration-*'
tags:
- '*'

jobs:
linters:
uses: ./.github/workflows/linters.yml # use the callable linters job to run tests
sanity:
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
# linters:
# uses: ./.github/workflows/linters.yml # use the callable linters job to run tests
# sanity:
# 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:
- linters
- sanity
- units
# - linters
# - sanity
# - units
- integrations
runs-on: ubuntu-latest
steps:
- run: >-
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
6 changes: 4 additions & 2 deletions .github/workflows/integration_source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,14 @@ 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
cat ${{ steps.identify.outputs.collection_path }}/tests/integration/integration_config.yml
env:
SN_HOST: ${{ secrets.sn_host }}
SN_HOST: ${{ secrets.SN_HOST }}
SN_USERNAME: ${{ secrets.sn_username }}
SN_PASSWORD: ${{ secrets.sn_password }}

Expand Down

0 comments on commit 906dee5

Please sign in to comment.