Skip to content

Commit

Permalink
add if condition to setup
Browse files Browse the repository at this point in the history
  • Loading branch information
NiniOak committed Aug 21, 2023
1 parent e31374b commit f0ec9ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ on:
- 'backport/ui/**'
- 'backport/mktg-**'

# paths-ignore:
# - 'docs/**'
# - 'ui/**'
# - 'website/**'
# - 'grafana/**'
# - '.github/**'
push:
branches:
# Push events on the main branch
- main
- release/**


# paths-ignore:
# - 'docs/**'
# - 'ui/**'
# - 'website/**'
# - 'grafana/**'
# - '.github/**'


# paths-ignore:
# - 'docs/**'
# - 'ui/**'
Expand Down Expand Up @@ -65,6 +68,7 @@ jobs:
setup:
name: Setup
if: needs.steps.changed-files-yaml.outputs.test_any_changed == 'false'
runs-on: ubuntu-latest
outputs:
compute-small: ${{ steps.setup-outputs.outputs.compute-small }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
setup:
runs-on: ubuntu-latest
name: Setup
if: needs.steps.changed-files-yaml.outputs.test_any_changed == 'false'
outputs:
compute-small: ${{ steps.runners.outputs.compute-small }}
compute-medium: ${{ steps.runners.outputs.compute-medium }}
Expand All @@ -90,6 +91,7 @@ jobs:
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}

nomad-integration-test:
# if: needs.steps.changed-files-yaml.outputs.test_any_changed == 'false'
runs-on: ${{ fromJSON(needs.setup.outputs.compute-large) }}
needs:
- setup
Expand Down Expand Up @@ -169,6 +171,7 @@ jobs:
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" $TEST_RESULTS_DIR/results.xml

vault-integration-test:
# if: needs.steps.changed-files-yaml.outputs.test_any_changed == 'false'
runs-on: ${{ fromJSON(needs.setup.outputs.compute-large) }}
needs:
- setup
Expand Down Expand Up @@ -266,6 +269,7 @@ jobs:
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" "${{ env.TEST_RESULTS_DIR }}/gotestsum-report-agent.xml"

generate-envoy-job-matrices:
# if: needs.steps.changed-files-yaml.outputs.test_any_changed == 'false'
needs: [setup]
runs-on: ${{ fromJSON(needs.setup.outputs.compute-small) }}
name: Generate Envoy Job Matrices
Expand Down

0 comments on commit f0ec9ed

Please sign in to comment.