42
42
DEBUG : " "
43
43
LAMBDA_EXECUTOR : " "
44
44
KINESIS_ERROR_PROBABILITY : " "
45
- DOCKER_HOST : unix:///var/run/docker.sock
46
45
KINESIS_INITIALIZE_STREAMS : ${{ env.KINESIS_INITIALIZE_STREAMS }}
47
46
LOCALSTACK_HOST : ${{ env.AWS_HOST }} # Required so that resource urls are provided properly
48
47
# e.g sqs url will get localhost if we don't set this env to map our service
@@ -115,6 +114,17 @@ jobs:
115
114
--health-retries 5
116
115
--health-start-period 30s
117
116
117
+ victorialogs :
118
+ image : victoriametrics/victoria-logs:v1.5.0-victorialogs
119
+ ports :
120
+ - " 9428:9428"
121
+ options : >-
122
+ --name=victorialogs1
123
+ --health-cmd "wget -q -O - http://0.0.0.0:9428"
124
+ --health-interval 30s
125
+ --health-timeout 10s
126
+ --health-retries 5
127
+ --health-start-period 30s
118
128
steps :
119
129
120
130
- name : Check out CrowdSec repository
@@ -126,7 +136,7 @@ jobs:
126
136
- name : " Set up Go"
127
137
uses : actions/setup-go@v5
128
138
with :
129
- go-version : " 1.23 "
139
+ go-version-file : go.mod
130
140
131
141
- name : Run "go generate" and check for changes
132
142
run : |
@@ -144,11 +154,11 @@ jobs:
144
154
go generate ./...
145
155
protoc --version
146
156
if [[ $(git status --porcelain) ]]; then
147
- echo "Error: Uncommitted changes found after running 'make generate'. Please commit all generated code."
157
+ echo "Error: Uncommitted changes found after running 'go generate'. Please commit all generated code."
148
158
git diff
149
159
exit 1
150
160
else
151
- echo "No changes detected after running 'make generate'."
161
+ echo "No changes detected after running 'go generate'."
152
162
fi
153
163
154
164
- name : Create localstack streams
@@ -174,11 +184,9 @@ jobs:
174
184
run : |
175
185
make build BUILD_PROFILE=minimal
176
186
177
- - name : Run tests again, dynamic
187
+ - name : Ensure we can do a dynamic build, without tests
178
188
run : |
179
189
make clean build
180
- set -o pipefail
181
- make go-acc | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter
182
190
183
191
- name : Upload unit coverage to Codecov
184
192
uses : codecov/codecov-action@v4
@@ -190,6 +198,6 @@ jobs:
190
198
- name : golangci-lint
191
199
uses : golangci/golangci-lint-action@v6
192
200
with :
193
- version : v1.61
201
+ version : v1.64
194
202
args : --issues-exit-code=1 --timeout 10m
195
203
only-new-issues : false
0 commit comments