use correct filter syntax in CI scripts
This commit is contained in:
parent
2faeabe79c
commit
4fbaf5aceb
1 changed files with 11 additions and 17 deletions
|
|
@ -128,13 +128,11 @@ backend_tests:
|
|||
- name: redis
|
||||
pull_policy: if-not-present
|
||||
script:
|
||||
- >-
|
||||
pnpm run build \
|
||||
--filter=backend \
|
||||
--filter=megalodon \
|
||||
--filter=misskey-js
|
||||
- pnpm run migrate
|
||||
- pnpm run test --filter=backend
|
||||
- pnpm run --filter misskey-js build
|
||||
- pnpm run --filter megalodon build
|
||||
- pnpm run --filter backend build
|
||||
- pnpm run --filter backend migrate
|
||||
- pnpm run --filter backend test
|
||||
# Same as common, but MRs are only run if they modify the backend.
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == 'push' && ($CI_COMMIT_BRANCH == 'develop' || $CI_COMMIT_BRANCH == 'stable')
|
||||
|
|
@ -152,16 +150,12 @@ backend_tests:
|
|||
frontend_tests:
|
||||
<<: *test_common
|
||||
script:
|
||||
- >-
|
||||
pnpm run build \
|
||||
--filter=frontend \
|
||||
--filter=frontend-embed \
|
||||
--filter=frontend-shared \
|
||||
--filter=misskey-js \
|
||||
--filter=misskey-bubble-game \
|
||||
--filter=misskey-reversi \
|
||||
--filter=sw
|
||||
- pnpm run test --filter=frontend --filter=misskey-js
|
||||
- pnpm run --filter misskey-js build
|
||||
- pnpm run --filter megalodon build
|
||||
- pnpm run --filter frontend-shared build
|
||||
- pnpm run --filter frontend-embed build
|
||||
- pnpm run --filter frontend build
|
||||
- pnpm run --filter frontend test
|
||||
# Same as common, but MRs are only run if they modify the frontend.
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == 'push' && ($CI_COMMIT_BRANCH == 'develop' || $CI_COMMIT_BRANCH == 'stable')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue