2021-07-25 20:03:47 +02:00
|
|
|
name: Cypress Tests
|
|
|
|
|
2022-06-04 05:52:59 +02:00
|
|
|
on: [push, pull_request]
|
2021-07-25 20:03:47 +02:00
|
|
|
jobs:
|
2021-07-26 20:23:35 +02:00
|
|
|
cypress:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
containers: [1, 2, 3, 4, 5]
|
2021-07-27 01:47:32 +02:00
|
|
|
os: ["ubuntu-latest"]
|
2021-08-04 06:20:05 +02:00
|
|
|
browser: [chrome]
|
2021-07-26 20:23:35 +02:00
|
|
|
name: E2E tests on ${{ matrix.browser }} - ${{ matrix.os }}
|
2021-07-25 20:03:47 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-12-08 06:22:21 +01:00
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-05-10 06:59:09 +02:00
|
|
|
node-version: 16.15.0
|
2021-12-08 06:27:22 +01:00
|
|
|
cache: 'npm'
|
|
|
|
cache-dependency-path: frontend/package-lock.json
|
2021-08-18 00:55:00 +02:00
|
|
|
- name: ${{ matrix.browser }} browser tests (Mempool)
|
2022-06-04 05:59:03 +02:00
|
|
|
uses: cypress-io/github-action@v4
|
2021-07-25 20:03:47 +02:00
|
|
|
with:
|
2022-02-08 05:50:10 +01:00
|
|
|
tag: ${{ github.event_name }}
|
2021-07-25 20:03:47 +02:00
|
|
|
working-directory: frontend
|
2021-08-18 00:55:00 +02:00
|
|
|
build: npm run config:defaults:mempool
|
2022-02-07 00:13:31 +01:00
|
|
|
start: npm run start:local-staging
|
2021-07-25 20:03:47 +02:00
|
|
|
wait-on: 'http://localhost:4200'
|
|
|
|
wait-on-timeout: 120
|
|
|
|
record: true
|
2021-07-26 20:23:35 +02:00
|
|
|
parallel: true
|
2022-01-21 06:43:13 +01:00
|
|
|
spec: |
|
2022-06-04 05:46:33 +02:00
|
|
|
cypress/e2e/mainnet/*.spec.ts
|
|
|
|
cypress/e2e/signet/*.spec.ts
|
|
|
|
cypress/e2e/testnet/*.spec.ts
|
2021-08-18 00:55:00 +02:00
|
|
|
group: Tests on ${{ matrix.browser }} (Mempool)
|
|
|
|
browser: ${{ matrix.browser }}
|
|
|
|
ci-build-id: '${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}'
|
2021-08-18 01:14:19 +02:00
|
|
|
env:
|
2022-02-08 05:50:10 +01:00
|
|
|
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
|
2021-08-18 01:14:19 +02:00
|
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
|
2021-08-18 01:08:47 +02:00
|
|
|
|
2021-08-18 00:55:00 +02:00
|
|
|
- name: ${{ matrix.browser }} browser tests (Liquid)
|
2022-06-04 05:59:03 +02:00
|
|
|
uses: cypress-io/github-action@v4
|
2021-08-18 01:26:19 +02:00
|
|
|
if: always()
|
2021-08-18 00:55:00 +02:00
|
|
|
with:
|
2022-02-08 05:50:10 +01:00
|
|
|
tag: ${{ github.event_name }}
|
2021-08-18 00:55:00 +02:00
|
|
|
working-directory: frontend
|
|
|
|
build: npm run config:defaults:liquid
|
2022-02-07 00:13:31 +01:00
|
|
|
start: npm run start:local-staging
|
2021-08-18 00:55:00 +02:00
|
|
|
wait-on: 'http://localhost:4200'
|
|
|
|
wait-on-timeout: 120
|
|
|
|
record: true
|
|
|
|
parallel: true
|
2022-01-21 06:43:13 +01:00
|
|
|
spec: |
|
2022-06-04 05:46:33 +02:00
|
|
|
cypress/e2e/liquid/liquid.spec.ts
|
|
|
|
cypress/e2e/liquidtestnet/liquidtestnet.spec.ts
|
2021-08-18 00:55:00 +02:00
|
|
|
group: Tests on ${{ matrix.browser }} (Liquid)
|
|
|
|
browser: ${{ matrix.browser }}
|
|
|
|
ci-build-id: '${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}'
|
2021-08-18 01:14:19 +02:00
|
|
|
env:
|
2022-02-08 05:50:10 +01:00
|
|
|
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
|
2021-08-18 01:14:19 +02:00
|
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
|
2021-08-18 01:08:47 +02:00
|
|
|
|
2021-08-18 00:55:00 +02:00
|
|
|
- name: ${{ matrix.browser }} browser tests (Bisq)
|
2022-06-04 05:59:27 +02:00
|
|
|
uses: cypress-io/github-action@v4
|
2021-08-18 01:26:19 +02:00
|
|
|
if: always()
|
2021-08-18 00:55:00 +02:00
|
|
|
with:
|
2022-02-08 05:50:10 +01:00
|
|
|
tag: ${{ github.event_name }}
|
2021-08-18 00:55:00 +02:00
|
|
|
working-directory: frontend
|
|
|
|
build: npm run config:defaults:bisq
|
2022-02-07 00:13:31 +01:00
|
|
|
start: npm run start:local-staging
|
2021-08-18 00:55:00 +02:00
|
|
|
wait-on: 'http://localhost:4200'
|
|
|
|
wait-on-timeout: 120
|
|
|
|
record: true
|
|
|
|
parallel: true
|
2022-06-04 05:46:33 +02:00
|
|
|
spec: cypress/e2e/bisq/bisq.spec.ts
|
2021-08-18 00:55:00 +02:00
|
|
|
group: Tests on ${{ matrix.browser }} (Bisq)
|
2021-07-26 20:23:35 +02:00
|
|
|
browser: ${{ matrix.browser }}
|
|
|
|
ci-build-id: '${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}'
|
2021-07-25 20:03:47 +02:00
|
|
|
env:
|
2022-02-08 05:50:10 +01:00
|
|
|
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
|
2021-07-25 20:03:47 +02:00
|
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
2021-07-26 18:48:53 +02:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-07-25 20:03:47 +02:00
|
|
|
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
|