2021-07-25 20:03:47 +02:00
|
|
|
name: Cypress Tests
|
|
|
|
|
2021-07-29 16:58:25 +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-08-18 00:55:00 +02:00
|
|
|
- name: ${{ matrix.browser }} browser tests (Mempool)
|
2021-07-25 20:03:47 +02:00
|
|
|
uses: cypress-io/github-action@v2
|
|
|
|
with:
|
|
|
|
working-directory: frontend
|
2021-08-18 00:55:00 +02:00
|
|
|
build: npm run config:defaults:mempool
|
2021-07-25 20:03:47 +02:00
|
|
|
start: npm run start:local-prod
|
|
|
|
wait-on: 'http://localhost:4200'
|
|
|
|
wait-on-timeout: 120
|
|
|
|
record: true
|
2021-07-26 20:23:35 +02:00
|
|
|
parallel: true
|
2021-08-18 00:55:00 +02:00
|
|
|
env: BASE_MODULE=mempool
|
|
|
|
group: Tests on ${{ matrix.browser }} (Mempool)
|
|
|
|
browser: ${{ matrix.browser }}
|
|
|
|
ci-build-id: '${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}'
|
|
|
|
- name: ${{ matrix.browser }} browser tests (Liquid)
|
|
|
|
uses: cypress-io/github-action@v2
|
|
|
|
with:
|
|
|
|
working-directory: frontend
|
|
|
|
build: npm run config:defaults:liquid
|
|
|
|
start: npm run start:local-prod
|
|
|
|
wait-on: 'http://localhost:4200'
|
|
|
|
wait-on-timeout: 120
|
|
|
|
record: true
|
|
|
|
parallel: true
|
|
|
|
spec: cypress/integration/liquid/liquid.spec.ts
|
|
|
|
env: BASE_MODULE=lidquid
|
|
|
|
group: Tests on ${{ matrix.browser }} (Liquid)
|
|
|
|
browser: ${{ matrix.browser }}
|
|
|
|
ci-build-id: '${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}'
|
|
|
|
- name: ${{ matrix.browser }} browser tests (Bisq)
|
|
|
|
uses: cypress-io/github-action@v2
|
|
|
|
with:
|
|
|
|
working-directory: frontend
|
|
|
|
build: npm run config:defaults:bisq
|
|
|
|
start: npm run start:local-prod
|
|
|
|
wait-on: 'http://localhost:4200'
|
|
|
|
wait-on-timeout: 120
|
|
|
|
record: true
|
|
|
|
parallel: true
|
|
|
|
spec: cypress/integration/bisq/bisq.spec.ts
|
|
|
|
env: BASE_MODULE=bisq
|
|
|
|
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:
|
|
|
|
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 }}
|