-
Notifications
You must be signed in to change notification settings - Fork 54
48 lines (43 loc) · 1.19 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
48
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:
node-version: [18.x]
config: [desktop, mobile]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- 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@v3
with:
name: allure-report-${{ matrix.config }}
path: ./platforms/web/test-e2e/output/${{ matrix.config }}
retention-days: 7