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