-
Notifications
You must be signed in to change notification settings - Fork 54
47 lines (42 loc) · 1.11 KB
/
web-test-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
name: Web - Test - End to End
on:
pull_request:
push:
branches: ['develop', 'release']
schedule:
- cron: '30 3 * * 1-5'
workflow_dispatch:
defaults:
run:
working-directory: ./platforms/web
jobs:
test-e2e:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config: [desktop, mobile]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: |
yarn
yarn global add wait-on
- name: Start preview server
run: yarn start:test &
- name: Run tests
run: wait-on -v -t 60000 -c ./scripts/waitOnConfig.js http-get://localhost:8080 && yarn codecept:${{ matrix.config }}
env:
TEST_RETRY_COUNT: 2
WORKER_COUNT: 2
- name: Uploading artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: allure-report-${{ matrix.config }}
path: ./platforms/web/test-e2e/output/${{ matrix.config }}
retention-days: 7