Skip to content

Commit

Permalink
ci files implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangarano committed Sep 12, 2023
1 parent be0620c commit a45f17c
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/e2e-cypress-12-ccy-1.10.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected]

- 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
41 changes: 41 additions & 0 deletions .github/workflows/e2e-cypress-13-ccy-1.10.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected]

- 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
7 changes: 7 additions & 0 deletions e2e/cypress-12-demo/scripts/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
})();
9 changes: 8 additions & 1 deletion e2e/cypress-13-demo/scripts/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
})();

0 comments on commit a45f17c

Please sign in to comment.