1515 - cargo clippy --package ${SERVICE_NAME} -- -D warnings
1616 allow_failure : true
1717
18+ .service-test :
19+ extends : .service-rust-base
20+ script :
21+ - cargo test --package ${SERVICE_NAME}
22+
1823.service-build :
1924 extends : .service-rust-base
2025 stage : build
@@ -151,4 +156,62 @@ moderation-image:
151156 - .service-image
152157 rules :
153158 - !reference [.moderation-workflow, rules]
154- - !reference [.release-workflow, rules]
159+ - !reference [.release-workflow, rules]
160+
161+ # #######################################################################
162+ # notifications
163+ # #######################################################################
164+
165+ .notifications-workflow :
166+ image : gitlab.futo.org:5050/devops/manifest-repo/library/docker:latest
167+ rules :
168+ - if : $CI_COMMIT_TAG =~ /^notifications-/
169+ when : always
170+ - if : $CI_PIPELINE_SOURCE == "merge_request_event"
171+ changes :
172+ - Cargo.toml
173+ - Cargo.lock
174+ - services/notifications/**/*
175+ - services/common/**/*
176+ - .gitlab/ci/build_services.yml
177+ - .gitlab/ci/deploy_services.yml
178+ - if : $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
179+ when : never
180+ - if : $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
181+ changes :
182+ - services/notifications/**/*
183+ - services/common/**/*
184+ - .gitlab/ci/build_services.yml
185+ - .gitlab/ci/deploy_services.yml
186+ variables :
187+ RUNNER_SCRIPT_TIMEOUT : 179m
188+ SERVICE_NAME : notifications-service
189+ SERVICE_DIR : notifications
190+
191+ notifications-format-check :
192+ extends :
193+ - .notifications-workflow
194+ - .service-format-check
195+
196+ notifications-clippy :
197+ extends :
198+ - .notifications-workflow
199+ - .service-clippy
200+
201+ notifications-test :
202+ extends :
203+ - .notifications-workflow
204+ - .service-test
205+
206+ notifications-build :
207+ extends :
208+ - .notifications-workflow
209+ - .service-build
210+
211+ notifications-image :
212+ extends :
213+ - .notifications-workflow
214+ - .service-image
215+ rules :
216+ - !reference [.notifications-workflow, rules]
217+ - !reference [.release-workflow, rules]
0 commit comments