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 - target/debug/build
stages: stages:
- dependency
- test - test
- build - build
- dependency
variables: variables:
POSTGRES_DB: 'firefish_db' POSTGRES_DB: 'firefish_db'
@ -81,13 +81,6 @@ build:
build:client: build:client:
stage: test stage: test
rules: 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' - if: $CI_COMMIT_BRANCH == 'develop' || $CI_PIPELINE_SOURCE == 'merge_request_event'
changes: changes:
paths: paths:
@ -101,6 +94,14 @@ build:client:
- Cargo.toml - Cargo.toml
- Cargo.lock - Cargo.lock
when: never 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: [] services: []
before_script: before_script:
- apt-get update && apt-get -y upgrade - apt-get update && apt-get -y upgrade