diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a6a0d04cc6..401e95c50f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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')