-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.95 KB
/
ci-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# name: CI E2E
# on:
# workflow_dispatch:
# schedule:
# - cron: '0 1 * * *'
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
# concurrency:
# group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
# cancel-in-progress: true
# jobs:
# main:
# name: Cypress
# runs-on: ubuntu-20.04
# if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
# strategy:
# fail-fast: false # https://github.com/cypress-io/github-action/issues/48
# matrix:
# containers: [ 1, 2 ]
# steps:
# - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
# - name: Setup Playground
# run: docker-compose -f docker-compose.yml up -d
# - uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
# with:
# node-version: 16
# cache: 'npm'
# - run: npm ci
# - run: .github/workflows/ci/wait-for http://localhost:3001/_actuator/probes/liveness -t 240
# - run: .github/workflows/ci/wait-for http://localhost:3002/_actuator/probes/liveness -t 240
# - run: .github/workflows/ci/wait-for http://localhost:19551/ping -t 240
# - uses: cypress-io/github-action@30008f1458a5a2c97054bfe118fe33d75976c482 # tag=v4.2.0
# with:
# config-file: cypress.config.js
# install: false
# record: true
# parallel: true
# start: npm run start:web
# wait-on: 'http://localhost:19006'
# browser: chrome
# spec: mobile-app/cypress/e2e/**
# tag: ${{ github.event_name }}
# project: ./mobile-app
# env:
# CYPRESS_E2E: true
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # tag=v3.1.1