mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 01:04:28 +01:00
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: Cypress Tests
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
cypress:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
containers: [1, 2, 3, 4, 5]
|
|
os: ["ubuntu-latest"]
|
|
browser: [chrome, firefox]
|
|
include:
|
|
- browser: firefox
|
|
container:
|
|
image: cypress/browsers:node14.17.0-chrome88-ff89
|
|
options: --user 1001
|
|
name: E2E tests on ${{ matrix.browser }} - ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: ${{ matrix.browser }} browser tests
|
|
uses: cypress-io/github-action@v2
|
|
with:
|
|
working-directory: frontend
|
|
build: npm run config:defaults
|
|
start: npm run start:local-prod
|
|
wait-on: 'http://localhost:4200'
|
|
wait-on-timeout: 120
|
|
record: true
|
|
parallel: true
|
|
group: Tests on ${{ matrix.browser }}
|
|
browser: ${{ matrix.browser }}
|
|
ci-build-id: '${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}'
|
|
env:
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
|
|
DEBUG: 'cypress:*'
|