Skip to content

Commit 3231996

Browse files
committed
fix: run an empty CI job when there are no changes in the engine nor ui directories to get a passed pipeline
1 parent 21759a2 commit 3231996

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,16 @@ workflow:
1313
include:
1414
- local: 'engine/.gitlab-ci.yml'
1515
- local: 'ui/.gitlab-ci.yml'
16+
17+
empty-job:
18+
stage: test
19+
script:
20+
- echo 'success'
21+
rules:
22+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
23+
when: always
24+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
25+
changes:
26+
- engine/**/*
27+
- ui/**/*
28+
when: never

engine/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ linters:
8282
- megacheck
8383
- misspell
8484
- prealloc
85-
# - revive # temporarily disabled: https://gitlab.com/postgres-ai/database-lab/-/merge_requests/498
85+
- revive
8686
- structcheck
8787
- stylecheck
8888
- unconvert

0 commit comments

Comments
 (0)