@@ -17,8 +17,26 @@ concurrency:
17
17
permissions : read-all
18
18
19
19
jobs :
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
+
20
37
contrib-tests-matrix :
21
38
runs-on : ubuntu-latest
39
+ needs : [contrib-tests-prepare]
22
40
if : ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Contrib Tests') }}
23
41
strategy :
24
42
fail-fast : false
@@ -40,16 +58,20 @@ jobs:
40
58
steps :
41
59
- name : Checkout Repo
42
60
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
61
+ - name : Download contrib
62
+ uses : actions/download-artifact@v4
63
+ with :
64
+ name : contrib
65
+ path : /tmp/contrib
43
66
- name : Setup Go
44
67
uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
45
68
with :
46
69
go-version : ~1.23.6
47
70
cache : false
48
- - name : Run Contrib Tests
71
+ - name : Run tests
49
72
run : |
50
- contrib_path=/tmp/opentelemetry-collector-contrib
51
- git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector-contrib.git $contrib_path
52
- make CONTRIB_PATH=$contrib_path SKIP_RESTORE_CONTRIB=true GROUP=${{ matrix.group }} check-contrib
73
+ chmod +x /tmp/contrib/.tools/*
74
+ make CONTRIB_PATH=/tmp/contrib SKIP_RESTORE_CONTRIB=true GROUP=${{ matrix.group }} check-contrib
53
75
54
76
contrib_tests :
55
77
runs-on : ubuntu-latest
0 commit comments