77 if : github.actor != 'dependabot[bot]'
88 strategy :
99 fail-fast : false
10+ max-parallel : 4
1011 matrix :
1112 include :
13+ # Ubuntu - All tests
1214 - os : ubuntu
1315 runner : namespace-profile-bindplane-default-ubuntu-24-04-32x64
14- go_mod_path : /home/runner/go/pkg/mod
15- go_bin_path : /home/runner/go/bin
1616 test_cmd : sudo make test-updater-integration
17+ # macOS - All tests
1718 - os : macos
1819 runner : namespace-profile-bindplane-default-macos-15
19- go_mod_path : /Users/runner/go/pkg/mod
20- go_bin_path : /Users/runner/go/bin
2120 test_cmd : make test-updater-integration
21+ # Windows - Receivers
2222 - os : windows
23- runner : namespace-profile-bindplane-default-windows-2022-32x64
24- go_mod_path : C:\Users\runneradmin\go\pkg\mod
25- go_bin_path : C:\Users\runneradmin\go\bin
26- go_build_path : C:\Users\runneradmin\AppData\Local\go-build
23+ target : receivers
24+ runner : namespace-profile-bindplane-default-windows-2022-8x16
25+ test_cmd : make test-updater-integration
26+ # Windows - Processors
27+ - os : windows
28+ target : processors
29+ runner : namespace-profile-bindplane-default-windows-2022-8x16
30+ test_cmd : make test-updater-integration
31+ # Windows - Exporters
32+ - os : windows
33+ target : exporters
34+ runner : namespace-profile-bindplane-default-windows-2022-8x16
35+ test_cmd : make test-updater-integration
36+ # Windows - Extensions
37+ - os : windows
38+ target : extensions
39+ runner : namespace-profile-bindplane-default-windows-2022-8x16
40+ test_cmd : make test-updater-integration
41+ # Windows - Other
42+ - os : windows
43+ target : other
44+ runner : namespace-profile-bindplane-default-windows-2022-8x16
2745 test_cmd : make test-updater-integration
2846 runs-on : ${{ matrix.runner }}
2947 steps :
@@ -51,19 +69,19 @@ jobs:
5169 if : matrix.os == 'ubuntu'
5270 uses : namespacelabs/nscloud-cache-action@v1
5371 with :
54- path : ${{ matrix.go_mod_path }}
72+ path : /home/runner/go/pkg/mod
5573
5674 - name : Cache Go modules (macOS)
5775 if : matrix.os == 'macos'
5876 uses : namespacelabs/nscloud-cache-action@v1
5977 with :
60- path : ${{ matrix.go_mod_path }}
78+ path : /Users/runner/go/pkg/mod
6179
6280 - name : Cache Go modules (Windows)
6381 if : matrix.os == 'windows'
6482 uses : actions/cache@v4
6583 with :
66- path : ${{ matrix.go_mod_path }}
84+ path : C:\Users\runneradmin\go\pkg\mod
6785 key : ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
6886 restore-keys : |
6987 ${{ runner.os }}-go-mod-
7290 if : matrix.os == 'windows'
7391 uses : actions/cache@v4
7492 with :
75- path : ${{ matrix.go_build_path }}
93+ path : C:\Users\runneradmin\AppData\Local\go-build
7694 key : ${{ runner.os }}-go-build-${{ hashFiles('**/*.go') }}
7795 restore-keys : |
7896 ${{ runner.os }}-go-build-
@@ -81,30 +99,38 @@ jobs:
8199 if : matrix.os == 'ubuntu'
82100 uses : namespacelabs/nscloud-cache-action@v1
83101 with :
84- path : ${{ matrix.go_bin_path }}
102+ path : /home/runner/go/bin
85103
86104 - name : Cache Tools (macOS)
87105 if : matrix.os == 'macos'
88106 uses : namespacelabs/nscloud-cache-action@v1
89107 with :
90- path : ${{ matrix.go_bin_path }}
108+ path : /Users/runner/go/bin
91109
92110 - name : Cache Tools (Windows)
93111 if : matrix.os == 'windows'
94112 uses : actions/cache@v4
95113 with :
96- path : ${{ matrix.go_bin_path }}
114+ path : C:\Users\runneradmin\go\bin
97115 key : ${{ runner.os }}-go-tools-${{ hashFiles('internal/tools/go.sum') }}
98116 restore-keys : |
99117 ${{ runner.os }}-go-tools-
100118
101119 - name : Install Tools
102120 run : make install-tools-ci
103121
104- - name : Run Tests
122+ - name : Run Component Tests
123+ if : matrix.os == 'windows'
124+ run : make test-${{ matrix.target }}
125+
126+ - name : Run All Tests
127+ if : matrix.os != 'windows'
105128 run : make test
106129
130+ # Run updater integration tests for Ubuntu and macOS (always)
131+ # For Windows, only run when target is 'other'
107132 - name : Run Updater Integration Tests
133+ if : matrix.os != 'windows' || matrix.target == 'other'
108134 run : ${{ matrix.test_cmd }}
109135
110136 test-summary :
0 commit comments