ci: fix rules
This commit is contained in:
parent
4d3072929e
commit
421030c38f
1 changed files with 8 additions and 5 deletions
|
@ -61,7 +61,7 @@ default:
|
||||||
build:
|
build:
|
||||||
stage: test
|
stage: test
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == 'push' || $CI_PIPELINE_SOURCE == 'merge_request_event'
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
changes:
|
changes:
|
||||||
paths:
|
paths:
|
||||||
- packages/backend/*
|
- packages/backend/*
|
||||||
|
@ -81,20 +81,23 @@ build:
|
||||||
build:client:
|
build:client:
|
||||||
stage: test
|
stage: test
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == 'push' || $CI_PIPELINE_SOURCE == 'merge_request_event'
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
changes:
|
changes:
|
||||||
paths:
|
paths:
|
||||||
- packages/client/*
|
- packages/client/*
|
||||||
- packages/firefish-js/*
|
- packages/firefish-js/*
|
||||||
- packages/sw/*
|
- packages/sw/*
|
||||||
- locales/**/*
|
- locales/**/*
|
||||||
- if: $CI_PIPELINE_SOURCE == 'push' || $CI_PIPELINE_SOURCE == 'merge_request_event'
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
changes:
|
changes:
|
||||||
paths:
|
paths:
|
||||||
- packages/backend/*
|
- packages/backend/*
|
||||||
- packages/backend-rs/*
|
- packages/backend-rs/*
|
||||||
- packages/macro-rs/*
|
- packages/macro-rs/*
|
||||||
- packages/megalodon/*
|
- packages/megalodon/*
|
||||||
|
- scripts/**/*
|
||||||
|
- package.json
|
||||||
|
- pnpm-lock.yaml
|
||||||
- Cargo.toml
|
- Cargo.toml
|
||||||
- Cargo.lock
|
- Cargo.lock
|
||||||
when: never
|
when: never
|
||||||
|
@ -154,7 +157,7 @@ build:container:
|
||||||
cargo:test:
|
cargo:test:
|
||||||
stage: test
|
stage: test
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' || $CI_COMMIT_BRANCH == 'develop'
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
changes:
|
changes:
|
||||||
paths:
|
paths:
|
||||||
- packages/backend-rs/**/*
|
- packages/backend-rs/**/*
|
||||||
|
@ -176,7 +179,7 @@ cargo:test:
|
||||||
cargo:clippy:
|
cargo:clippy:
|
||||||
stage: test
|
stage: test
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' || $CI_COMMIT_BRANCH == 'develop'
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
changes:
|
changes:
|
||||||
paths:
|
paths:
|
||||||
- packages/backend-rs/**/*
|
- packages/backend-rs/**/*
|
||||||
|
|
Loading…
Reference in a new issue