Просмотр исходного кода

Create the necessary env files before running yarn playwright

Shun Miyazawa 1 год назад
Родитель
Сommit
64839ecb93
1 измененных файлов с 2 добавлено и 11 удалено
  1. 2 11
      .github/workflows/reusable-app-prod.yml

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

@@ -420,20 +420,10 @@ jobs:
         MONGO_URI: mongodb://mongodb:27017/growi-playwright-installer
         ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
 
-    - name: Copy dotenv file for automatic installation
-      working-directory: ./apps/app
-      run: |
-        cat config/ci/.env.local.for-auto-install >> .env.production.local
-
-    - name: Copy dotenv file for automatic installation with allowing guest mode
-      if: ${{ matrix.spec-group == '21' }}
-      working-directory: ./apps/app
-      run: |
-        cat config/ci/.env.local.for-auto-install-with-allowing-guest >> .env.production.local
-
     - name: Playwright Run
       working-directory: ./apps/app
       run: |
+        cat config/ci/.env.local.for-auto-install >> .env.production.local
         yarn playwright test --project=${{ matrix.browser }} --shard=${{ matrix.shard }}
       env:
         HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
@@ -444,6 +434,7 @@ jobs:
       if: ${{ matrix.browser == 'chromium' }}
       working-directory: ./apps/app
       run: |
+        cat config/ci/.env.local.for-auto-install-with-allowing-guest >> .env.production.local
         yarn playwright test --project=${{ matrix.browser }}/guest-mode --shard=${{ matrix.shard }}
       env:
         HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500