Forráskód Böngészése

fix(ci): update test job names and modify test command for integration tests

Ryu Sato 1 hete
szülő
commit
a5710701d6
2 módosított fájl, 3 hozzáadás és 4 törlés
  1. 2 3
      .github/workflows/ci-app.yml
  2. 1 1
      apps/app/package.json

+ 2 - 3
.github/workflows/ci-app.yml

@@ -133,7 +133,6 @@ jobs:
           turbo run test --filter=@growi/app --filter=./packages/* --env-mode=loose
         env:
           MONGO_URI: mongodb://localhost:${{ job.services.mongodb.ports['27017'] }}/growi_test
-          VITE_ELASTICSEARCH_URI: ""
 
       - name: Upload coverage report as artifact
         uses: actions/upload-artifact@v7
@@ -154,7 +153,7 @@ jobs:
           url: ${{ secrets.SLACK_WEBHOOK_URL }}
 
 
-  ci-app-test-es:
+  ci-app-test-integration:
     runs-on: ubuntu-latest
 
     strategy:
@@ -201,7 +200,7 @@ jobs:
 
       - name: Test
         run: |
-          turbo run test --filter=@growi/app --env-mode=loose
+          turbo run test:integ --filter=@growi/app --env-mode=loose
         env:
           MONGO_URI: mongodb://localhost:${{ job.services.mongodb.ports['27017'] }}/growi_test
           VITE_ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi

+ 1 - 1
apps/app/package.json

@@ -41,7 +41,7 @@
     "prelint:typecheck": "next typegen",
     "prelint:openapi:apiv3": "pnpm run openapi:generate-spec:apiv3",
     "prelint:openapi:apiv1": "pnpm run openapi:generate-spec:apiv1",
-    "test": "vitest run",
+    "test": "vitest run --project=app-unit --project=app-components",
     "test:coverage": "run-p test:coverage:* test:integ",
     "test:coverage:unit": "COLUMNS=200 vitest run --coverage --project=app-unit",
     "test:coverage:components": "COLUMNS=200 vitest run --coverage --project=app-components",