Skip to content

Commit

Permalink
chore: using matrix for cypress compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldis committed Sep 19, 2023
1 parent 1d54c8f commit 0be4212
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
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 }}
run: npm install cypress@${{ matrix.cypress-version }}

- name: Build
run: npm run build
Expand All @@ -36,6 +35,7 @@ jobs:
CURRENTS_RUN_BASE_URL: ${{ secrets.CURRENTS_RUN_BASE_URL }}
CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }}
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
CYPRESS_VERSION: ${{ matrix.cypress-version }}

run: >
npx jest
3 changes: 2 additions & 1 deletion e2e/cypress-13-demo/__tests__/run.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const testSpecs = [
];
let result: any = null;

describe("Cypress 13 compatible output", () => {
// eslint-disable-next-line
describe(`Cypress ${process.env.CYPRESS_VERSION} compatibility`, () => {
jest.setTimeout(60 * 1000 * 5);

beforeAll(async () => {
Expand Down

0 comments on commit 0be4212

Please sign in to comment.