@@ -31,10 +31,21 @@ jobs:
31
31
- uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
32
32
with :
33
33
go-version-file : go.mod
34
+ <<<<<<< HEAD
34
35
cache : true
35
36
cache-dependency-path : |
36
37
go.sum
37
38
tools/go.sum
39
+ =======
40
+ cache : false
41
+
42
+ with :
43
+ path : |
44
+ ~/go/pkg/mod/cache
45
+ key : go-${{ hashFiles('go.mod') }}
46
+ restore-keys : |
47
+ go-
48
+ >>>>>>> bac9fec6 (ci: use manual caching with actions/cache (#16788))
38
49
- run : make check-full
39
50
- name : Ensure .go-version is up to date
40
51
run : make update-go-version
@@ -47,10 +58,64 @@ jobs:
47
58
runs-on : ${{ matrix.os }}
48
59
steps :
49
60
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
61
+ <<<<<<< HEAD
62
+ =======
50
63
- uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
51
64
with :
52
65
go-version-file : go.mod
53
- cache : true
66
+ cache : false
67
+
68
+ with :
69
+ enableCrossOsArchive : true
70
+ path : |
71
+ ~/go/pkg/mod/cache
72
+ key : go-${{ hashFiles('go.mod') }}
73
+ restore-keys : |
74
+ go-
75
+ - run : go test -v -race ./...
76
+
77
+ functional-test :
78
+ runs-on : ubuntu-latest
79
+ steps :
80
+
81
+
82
+ with :
83
+ go-version-file : functionaltests/go.mod
84
+ cache : false
85
+
86
+ with :
87
+ path : |
88
+ ~/go/pkg/mod/cache
89
+ key : functionaltests-go-${{ hashFiles('functionaltests/go.mod') }}
90
+ restore-keys : |
91
+ functionaltests-go-
92
+ - env :
93
+ KIBANA_URL : " https://kibana.test"
94
+ KIBANA_USERNAME : " dummy"
95
+ KIBANA_PASSWORD : " dummy"
96
+ EC_URL : " https://elastic-cloud.test"
97
+ EC_API_KEY : " dummy"
98
+ EC_REGION : " gcp-us-west2"
99
+ # run functionaltests internal tests
100
+ # functionaltests themselves are run in the functional-tests pipeline
101
+ run : cd ./functionaltests && go test -v -race ./internal/...
102
+
103
+ test-fips :
104
+ runs-on : ubuntu-latest
105
+ steps :
106
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
107
+ >>>>>>> bac9fec6 (ci: use manual caching with actions/cache (#16788))
108
+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
109
+ with :
110
+ go-version-file : go.mod
111
+ cache : false
112
+
113
+ with :
114
+ path : |
115
+ ~/go/pkg/mod/cache
116
+ key : go-${{ hashFiles('go.mod') }}
117
+ restore-keys : |
118
+ go-
54
119
- env :
55
120
CGO_ENABLED : " 0"
56
121
run : go test -v ./...
@@ -62,8 +127,19 @@ jobs:
62
127
- uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
63
128
with :
64
129
go-version-file : systemtest/go.mod
130
+ <<<<<<< HEAD
65
131
cache : true
132
+ =======
133
+ cache : false
134
+ >>>>>>> bac9fec6 (ci: use manual caching with actions/cache (#16788))
66
135
- run : docker compose up -d
136
+
137
+ with :
138
+ path : |
139
+ ~/go/pkg/mod/cache
140
+ key : systemtest-go-${{ hashFiles('systemtest/go.mod', 'go.mod') }}
141
+ restore-keys : |
142
+ systemtest-go-
67
143
- env :
68
144
GOTESTFLAGS : " -v -json"
69
145
OUTPUT_JSON_FILE : " build/TEST-go-system_tests.out.json"
@@ -76,8 +152,27 @@ jobs:
76
152
- uses : actions/upload-artifact@v4 # upload test results
77
153
if : ${{ always() }} # run this step even if previous step failed
78
154
with :
155
+ <<<<<<< HEAD
79
156
name : test-results
80
157
path : ' build/*.xml'
158
+ =======
159
+ go-version-file : systemtest/go.mod
160
+ cache : false
161
+ - run : docker compose up -d
162
+
163
+ with :
164
+ path : |
165
+ ~/go/pkg/mod/cache
166
+ key : systemtest-go-${{ hashFiles('systemtest/go.mod', 'go.mod') }}
167
+ restore-keys : |
168
+ systemtest-go-
169
+ - env :
170
+ GOTESTFLAGS : " -v -tags=requirefips"
171
+ GOFIPS140 : " latest"
172
+ GODEBUG : " fips140=only"
173
+ GH_TOKEN : ${{ github.token }}
174
+ run : make system-test
175
+ >>>>>>> bac9fec6 (ci: use manual caching with actions/cache (#16788))
81
176
82
177
test-package :
83
178
runs-on : ubuntu-latest
0 commit comments