Skip to content

Commit 5167c4e

Browse files
authored
Update test-target to allow getting the bash scripts from extras and marketplace (#22410)
* Update test-target to allow getting the bash scripts from extras and marketplace * Remove paths added by mistake to the pr worflow
1 parent 9a3216f commit 5167c4e

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
paths-ignore:
66
- datadog_checks_base/datadog_checks/**
77
- datadog_checks_dev/datadog_checks/dev/*.py
8-
# Also run if we modify the workflow files
9-
- '.github/workflows/pr.yml'
10-
- '.github/workflows/pr-test.yml'
11-
- '.github/workflows/test-target.yml'
128
merge_group:
139
# We require this workflow to pass in order to merge a PR to master.
1410
# This means Github's Merge Queue also requires it to pass.

.github/workflows/test-target.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ jobs:
112112
113113
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
114114

115+
- name: Download workflow scripts
116+
if: inputs.repo != 'core'
117+
run: |
118+
mkdir -p .github/workflows/scripts
119+
curl -sL https://raw.githubusercontent.com/DataDog/integrations-core/master/.github/workflows/scripts/setup-test-env.sh -o .github/workflows/scripts/setup-test-env.sh
120+
curl -sL https://raw.githubusercontent.com/DataDog/integrations-core/master/.github/workflows/scripts/run-unit-integration-tests.sh -o .github/workflows/scripts/run-unit-integration-tests.sh
121+
curl -sL https://raw.githubusercontent.com/DataDog/integrations-core/master/.github/workflows/scripts/run-e2e-tests.sh -o .github/workflows/scripts/run-e2e-tests.sh
122+
chmod +x .github/workflows/scripts/*.sh
123+
115124
- name: Set environment variables
116125
# This step sets the following environment variables for the entire workflow via setup-test-env.sh:
117126
# FORCE_COLOR
@@ -175,8 +184,8 @@ jobs:
175184
DD_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
176185

177186
- name: Tag job for CI Visibility
178-
# Skip on fork PRs since secrets won't be available
179-
if: env.INPUT_IS_FORK != 'true'
187+
# Skip on fork PRs and non-core repos since secrets won't be available
188+
if: env.INPUT_IS_FORK != 'true' || env.INPUT_REPO == 'core'
180189
uses: ./.github/actions/tag-job
181190
with:
182191
tags: ${{ env.DD_TAGS }}

0 commit comments

Comments
 (0)