diff --git a/.github/workflows/e2e-cypress-12-ccy-1.10.yml b/.github/workflows/e2e-cypress-12-ccy-1.10.yml new file mode 100644 index 0000000..5b1c84b --- /dev/null +++ b/.github/workflows/e2e-cypress-12-ccy-1.10.yml @@ -0,0 +1,41 @@ +name: e2e-cypress-12-ccy-1.10 + +on: + push: + +jobs: + e2e-cypress-12-ccy-1.10: + if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')" + runs-on: ubuntu-latest + env: + DEBUG: currents:* + + strategy: + matrix: + node-version: ["18"] + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm ci + + - name: Install Cypress 12.17.4 + run: cd ./packages/cypress-cloud | npm install cypress@12.17.4 + + - name: Build + run: npm run build + + - name: Run compatibility tests + working-directory: ./e2e/cypress-12-demo + env: + CURRENTS_API_KEY: YpYIAerb1rWuOFrvf7ciK8Za8koKgrtRfoDPboQUOjScnBv91m4qAXSDb8Rb57m9 + CURRENTS_RUN_BASE_URL: https://api.currents.dev/v1/runs/ + CURRENTS_PROJECT_ID: 2cI1I5 + CURRENTS_RECORD_KEY: YakSabgBLb7D40nZ + + run: > + npm run test diff --git a/.github/workflows/e2e-cypress-13-ccy-1.10.yml b/.github/workflows/e2e-cypress-13-ccy-1.10.yml new file mode 100644 index 0000000..75bd67e --- /dev/null +++ b/.github/workflows/e2e-cypress-13-ccy-1.10.yml @@ -0,0 +1,41 @@ +name: e2e-cypress-13-ccy-1.10 + +on: + push: + +jobs: + e2e-cypress-13-ccy-1.10: + if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')" + runs-on: ubuntu-latest + env: + DEBUG: currents:* + + strategy: + matrix: + node-version: ["18"] + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm ci + + - name: Install Cypress 13.1.0 + run: cd ./packages/cypress-cloud | npm install cypress@13.1.0 + + - name: Build + run: npm run build + + - name: Run compatibility tests + working-directory: ./e2e/cypress-13-demo + env: + CURRENTS_API_KEY: YpYIAerb1rWuOFrvf7ciK8Za8koKgrtRfoDPboQUOjScnBv91m4qAXSDb8Rb57m9 + CURRENTS_RUN_BASE_URL: https://api.currents.dev/v1/runs/ + CURRENTS_PROJECT_ID: 2cI1I5 + CURRENTS_RECORD_KEY: YakSabgBLb7D40nZ + + run: > + npm run test diff --git a/e2e/cypress-12-demo/scripts/test.ts b/e2e/cypress-12-demo/scripts/test.ts index 8605f3e..2366df7 100644 --- a/e2e/cypress-12-demo/scripts/test.ts +++ b/e2e/cypress-12-demo/scripts/test.ts @@ -460,7 +460,14 @@ async function getApiData(runUrl: string) { .green ); } + + if (currentsApiErrors.length > 0 || cypressCloudErrors.length > 0) { + process.exit(1); + } else { + process.exit(0); + } } catch (err) { console.error("Process error:", err); + process.exit(1); } })(); diff --git a/e2e/cypress-13-demo/scripts/test.ts b/e2e/cypress-13-demo/scripts/test.ts index d67ba5f..d9472c1 100644 --- a/e2e/cypress-13-demo/scripts/test.ts +++ b/e2e/cypress-13-demo/scripts/test.ts @@ -516,7 +516,14 @@ async function getApiData(runUrl: string) { .green ); } - } catch (err) { + + if (currentsApiErrors.length > 0 || cypressCloudErrors.length > 0) { + process.exit(1); + } else { + process.exit(0); + } + } catch (err: any) { console.error("Process error:", err); + process.exit(1); } })();