ci: update config

This commit is contained in:
naskya 2024-05-10 21:05:34 +09:00
parent fb4e449139
commit 2ca7bd65aa
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -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