salmon-king-61507
01/24/2023, 5:16 AMthousands-house-85089
01/24/2023, 10:27 AMsalmon-king-61507
01/24/2023, 3:43 PMadventurous-dream-20049
01/24/2023, 4:52 PMsalmon-king-61507
01/24/2023, 4:56 PMname: 'XYZ Automation Test'
on:
push:
branches: [ main ]
workflow_dispatch:
schedule:
- cron: '0 2 * * 1-5'
jobs:
test:
name: End to End Test
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
containers: [1, 2]
env:
CYPRESS_USER_EMAIL: ${{ secrets.PRODUCTION_USER_EMAIL }}
CYPRESS_USER_PASSWORD: ${{ secrets.PRODUCTION_USER_PASSWORD }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress run
uses: cypress-io/github-action@v4
with:
record: true
parallel: true
spec: cypress/e2e/user-journey/*.cy.js
config: baseUrl=https://test.xyz.com
- name: Save screenshot
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- name: Save video
uses: actions/upload-artifact@v2
if: always()
with:
name: cypress-videos
path: cypress/videos
- name: Merge & Generate combined HTML report
run: npm run mochawesome:merge
- name: Save report
uses: actions/upload-artifact@v2
if: always()
with:
name: cypress-mochawesome-report
path: mochawesome-reportsalmon-king-61507
01/24/2023, 5:19 PMparllel:true it didn't show the integration issue but all the specs were executed in both machines. I think the culprit here is parallel: true.
Do I need to give additional permissions to Cypress Cloud?adventurous-dream-20049
01/25/2023, 1:20 AMsalmon-king-61507
01/25/2023, 2:20 AMadventurous-dream-20049
01/25/2023, 3:07 PMadventurous-dream-20049
01/26/2023, 12:54 AMCYPRESS_RECORD_KEY and GITHUB_TOKEN env vars are out of scope for github-action@4
It should be nested within jobs.test.steps like in the example here: https://github.com/cypress-io/github-action#record-test-results-on-cypress-cloud
I'm also not sure of your use case, but if it is to just record to the Cypress Cloud, you will not need to add CYPRESS_USER_EMAIL or CYPRESS_USER_PASSWORDadventurous-dream-20049
01/26/2023, 12:55 AMname: 'XYZ Automation Test'
on:
...
jobs:
test:
...
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress run
uses: cypress-io/github-action@v4
with:
record: true
parallel: true
spec: cypress/e2e/user-journey/*.cy.js
config: baseUrl=https://test.xyz.com
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
...adventurous-dream-20049
01/26/2023, 12:57 AMsalmon-king-61507
01/26/2023, 3:00 AMsalmon-king-61507
01/26/2023, 3:23 AMError: Resource not accessible by integrationadventurous-dream-20049
01/26/2023, 3:45 AMsalmon-king-61507
01/26/2023, 5:24 AMquaint-solstice-91526
01/29/2023, 8:37 PMthousands-house-85089
01/29/2023, 8:47 PMadventurous-dream-20049
01/31/2023, 7:22 PM