Skip to content

Commit

Permalink
chore: using matrix for cypress compatibility (#8)
Browse files Browse the repository at this point in the history
* chore: using matrix for cypress compatibility

* chore: ..

* chore: remove debug for e2e compatibility

* chore: test cypress version

* chore: renames

* chore: install cypress in package

* chore: use match to get filenames

* chore: fix e2e compat tests

* chore: restore workflows

* chore: remove redundandt test
  • Loading branch information
agoldis authored Sep 22, 2023
1 parent ccbb852 commit b895ef4
Show file tree
Hide file tree
Showing 44 changed files with 54 additions and 1,016 deletions.
41 changes: 0 additions & 41 deletions .github/_workflows/e2e-cypress-12-ccy-1.10.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
name: e2e-cypress-13-ccy-1_10

name: e2e-cypress-compatibility
on:
push:

jobs:
e2e-cypress-13-ccy-1_10:
e2e-cypress-compatibility:
if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')"
runs-on: ubuntu-latest
env:
DEBUG: currents:*

strategy:
matrix:
node-version: ["18"]
cypress-version: ["13", "12"]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: "18"

- name: Install dependencies
run: npm ci

- name: Install Cypress 13
run: npm install cypress@13
- name: Install Cypress ${{ matrix.cypress-version }}
working-directory: ./packages/cypress-cloud
run: npm install cypress@${{ matrix.cypress-version }}

- name: Build
run: npm run build

- name: Run compatibility tests
working-directory: ./e2e/cypress-13-demo
working-directory: ./e2e/cypress-compatibility
env:
CURRENTS_API_KEY: ${{ secrets.CURRENTS_API_KEY }}
CURRENTS_RUN_BASE_URL: ${{ secrets.CURRENTS_RUN_BASE_URL }}
CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }}
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
CURRENTS_USE_CYPRESS_VERSION: ${{ matrix.cypress-version }}

run: >
npx jest
13 changes: 0 additions & 13 deletions e2e/cypress-12-demo/currents.config.js

This file was deleted.

26 changes: 0 additions & 26 deletions e2e/cypress-12-demo/cypress.config.ts

This file was deleted.

9 changes: 0 additions & 9 deletions e2e/cypress-12-demo/cypress/support/e2e.ts

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b895ef4

Please sign in to comment.