Browse Source

update run-cypress job

Yuki Takei 3 years ago
parent
commit
837e9fe996
1 changed files with 7 additions and 1 deletions
  1. 7 1
      .github/workflows/reusable-app-prod.yml

+ 7 - 1
.github/workflows/reusable-app-prod.yml

@@ -272,6 +272,11 @@ jobs:
         restore-keys: |
           deps-for-cypress-${{ runner.OS }}-node${{ inputs.node-version }}-
 
+    - name: Install dependencies
+      uses: cypress-io/github-action@v5
+      with:
+        runTests: false
+
     - name: Download production files artifact
       uses: actions/download-artifact@v3
       with:
@@ -305,11 +310,12 @@ jobs:
         cat config/ci/.env.local.for-auto-install-with-allowing-guest >> .env.production.local
 
     - name: Cypress Run
-      uses: cypress-io/github-action@v3
+      uses: cypress-io/github-action@v5
       with:
         browser: chrome
         working-directory: ./apps/app
         spec: '${{ steps.determine-spec-exp.outputs.value }}'
+        install: false
         start: yarn server
         wait-on: 'http://localhost:3000'
         config: video=${{ inputs.cypress-config-video }}