@@ -17,8 +17,26 @@ concurrency:
1717permissions : read-all
1818
1919jobs :
20+ contrib-tests-prepare :
21+ runs-on : ubuntu-latest
22+ if : ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Contrib Tests') }}
23+ steps :
24+ - name : Checkout Repo
25+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+ - name : Prepare Contrib Tests
27+ run : |
28+ contrib_path=/tmp/opentelemetry-collector-contrib
29+ git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector-contrib.git $contrib_path
30+ make CONTRIB_PATH=$contrib_path prepare-contrib
31+ - uses : actions/upload-artifact@v4
32+ with :
33+ name : contrib
34+ path : /tmp/opentelemetry-collector-contrib/
35+ include-hidden-files : true
36+
2037 contrib-tests-matrix :
2138 runs-on : ubuntu-latest
39+ needs : [contrib-tests-prepare]
2240 if : ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Contrib Tests') }}
2341 strategy :
2442 fail-fast : false
@@ -41,16 +59,18 @@ jobs:
4159 steps :
4260 - name : Checkout Repo
4361 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
62+ - name : Download contrib
63+ uses : actions/download-artifact@v4
64+ with :
65+ name : contrib
66+ path : /tmp/contrib
4467 - name : Setup Go
4568 uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
4669 with :
4770 go-version : ~1.23.6
4871 cache : false
49- - name : Run Contrib Tests
50- run : |
51- contrib_path=/tmp/opentelemetry-collector-contrib
52- git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector-contrib.git $contrib_path
53- make CONTRIB_PATH=$contrib_path SKIP_RESTORE_CONTRIB=true GROUP=${{ matrix.group }} check-contrib
72+ - name : Run tests
73+ run : make CONTRIB_PATH=/tmp/contrib SKIP_RESTORE_CONTRIB=true GROUP=${{ matrix.group }} check-contrib
5474
5575 contrib_tests :
5676 runs-on : ubuntu-latest
0 commit comments