File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 31
31
runs-on : ${{ matrix.OS }}
32
32
strategy :
33
33
matrix :
34
- # TODO: Add support for ARM runners : https://github.com/actions/runner-images?tab=readme-ov-file#available-images
35
- OS : [ "macos-13", "macos-14-large " ]
34
+ # The "macos-13-xlarge" runner is arm64 : https://github.com/actions/runner-images/issues/8439
35
+ OS : [ "macos-13", "macos-13-xlarge", "macos-14", "macos-15 " ]
36
36
steps :
37
37
- name : Check out the codebase.
38
38
uses : actions/checkout@v4
51
51
make install-tools
52
52
mkdir -p unit-test-results/junit
53
53
trap "go-junit-report -set-exit-code < unit-test-results/go-unit-tests.out > unit-test-results/junit/results.xml" EXIT
54
- make for-all CMD="make test" | tee unit-test-results/go-unit-tests.out
54
+ make for-all CMD="make test-without-race " | tee unit-test-results/go-unit-tests.out
55
55
56
56
- name : Uploading artifacts
57
57
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ COVER_PKGS := $(shell go list ./... | tr "\n" ",")
29
29
# build tags required by any component should be defined as an independent variables and later added to GO_BUILD_TAGS below
30
30
GO_BUILD_TAGS=""
31
31
GOTEST_OPT?= -race -v -timeout 180s --tags=$(GO_BUILD_TAGS)
32
+ GOTEST_OPT_WITHOUT_RACE?= -v -timeout 180s --tags=$(GO_BUILD_TAGS)
32
33
GOCMD?= go
33
34
GOTEST=$(GOCMD) test
34
35
GOOS=$(shell $(GOCMD) env GOOS)
@@ -82,6 +83,13 @@ test-with-codecov:
82
83
mkdir -p $(PWD)/coverage/unit
83
84
$(GOTEST) $(GOTEST_OPT) ./... -cover -covermode=atomic -coverpkg $(COVER_PKGS) -args -test.gocoverdir="$(PWD)/coverage/unit"
84
85
86
+ # Currently, running CGO_ENABLED=0 go test -race is broken in gopsutil/v4
87
+ # This target should be removed in favor of "test" once the following issue is resolved:
88
+ # https://github.com/shirou/gopsutil/issues/1774
89
+ .PHONY: test-without-race
90
+ test-without-race:
91
+ $(GOTEST) $(GOTEST_OPT_WITHOUT_RACE) $(ALL_PKG_DIRS)
92
+
85
93
.PHONY: addlicense
86
94
addlicense:
87
95
@ADDLICENCESEOUT=`$(ADDLICENCESE) -y "" -c 'Splunk, Inc.' $(ALL_SRC) 2>&1`; \
You can’t perform that action at this time.
0 commit comments