Yuki Takei 1 год назад
Родитель
Сommit
c74a9b4ede
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      .github/workflows/reusable-app-prod.yml

+ 5 - 2
.github/workflows/reusable-app-prod.yml

@@ -411,10 +411,13 @@ jobs:
         yarn global add node-gyp
         yarn global add node-gyp
         yarn --frozen-lockfile
         yarn --frozen-lockfile
 
 
-    - name: Install Playwright dependencies
+    - name: Install Playwright browsers
       if: steps.playwright-cache.outputs.cache-hit != 'true'
       if: steps.playwright-cache.outputs.cache-hit != 'true'
       run: |
       run: |
         yarn playwright install
         yarn playwright install
+
+    - name: Install Playwright system dependencies
+      run: |
         sudo yarn playwright install-deps
         sudo yarn playwright install-deps
 
 
     - name: Download production files artifact
     - name: Download production files artifact
@@ -446,7 +449,7 @@ jobs:
     - name: Playwright Run
     - name: Playwright Run
       working-directory: ./apps/app
       working-directory: ./apps/app
       run: |
       run: |
-        playwright test
+        yarn playwright test
       env:
       env:
         MONGO_URI: mongodb://localhost:${{ job.services.mongodb.ports['27017'] }}/growi-test-playwright
         MONGO_URI: mongodb://localhost:${{ job.services.mongodb.ports['27017'] }}/growi-test-playwright
         ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
         ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi