From 2ca7bd65aacaaa1fdbe05fabe8e367d7a149e32a Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 10 May 2024 21:05:34 +0900 Subject: [PATCH] ci: update config --- .gitlab-ci.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 949fe30e4c..12c05b8b65 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,9 +30,9 @@ cache: - target/debug/build stages: + - dependency - test - build - - dependency variables: POSTGRES_DB: 'firefish_db' @@ -81,13 +81,6 @@ build: build:client: stage: test rules: - - if: $CI_COMMIT_BRANCH == 'develop' || $CI_PIPELINE_SOURCE == 'merge_request_event' - changes: - paths: - - packages/client/* - - packages/firefish-js/* - - packages/sw/* - - locales/**/* - if: $CI_COMMIT_BRANCH == 'develop' || $CI_PIPELINE_SOURCE == 'merge_request_event' changes: paths: @@ -101,6 +94,14 @@ build:client: - Cargo.toml - Cargo.lock when: never + - if: $CI_COMMIT_BRANCH == 'develop' || $CI_PIPELINE_SOURCE == 'merge_request_event' + changes: + paths: + - packages/client/* + - packages/firefish-js/* + - packages/sw/* + - locales/**/* + when: always services: [] before_script: - apt-get update && apt-get -y upgrade