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