diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f57c0fb..eae1024 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,7 +62,9 @@ jobs: run: cd nuxt && yarn test:jest - name: Run Cypress tests 🧪 - run: cd nuxt && NODE_TLS_REJECT_UNAUTHORIZED=0 yarn test:cy + run: cd nuxt && NODE_TLS_REJECT_UNAUTHORIZED=0 yarn test:cy -- --key ${{ secrets.CYPRESS_RECORD_KEY }} + env: + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - uses: actions/upload-artifact@v2 if: failure() with: diff --git a/nuxt/cypress.json b/nuxt/cypress.json index 84cc22e..2b055c3 100644 --- a/nuxt/cypress.json +++ b/nuxt/cypress.json @@ -1,5 +1,6 @@ { "baseUrl": "http://localhost:3000", "componentFolder": "components", + "projectId": "hg1m62", "testFiles": "**/*.{feature,features}" } diff --git a/nuxt/package.json b/nuxt/package.json index 4317660..8a0d7a5 100644 --- a/nuxt/package.json +++ b/nuxt/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "build": "nuxt build", - "cy:run": "cypress run", + "cy:run": "cypress run --record", "deploy": "npx netlify-cli deploy -d ./dist", "dev": "nuxt", "generate": "nuxt generate",