-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (52 loc) · 1.93 KB
/
ci-tests.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
60
61
62
63
64
65
66
67
68
name: Run web tests
run-name: on push - ${{ github.actor }} is testing web tests runner with rf and playwright
on: [push]
jobs:
web-tests:
runs-on: ubuntu-latest
permissions: write-all
strategy:
matrix:
browser: [chromium, firefox, webkit]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Node.js 20
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
sudo npm install @playwright/test
sudo npx playwright install-deps
rfbrowser init
- name: Run Robot Framework Web Tests
run: |
robot -d ./results -v HEADLESS:true -v BROWSER:${{ matrix.browser }} tests
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: results-${{ matrix.browser }}
path: ./results
if-no-files-found: ignore
retention-days: 2
- name: Download tests results
if: always()
uses: actions/download-artifact@v1
with:
name: results-${{ matrix.browser }}
- name: Send report
if: always()
uses: joonvena/[email protected]
with:
report_path: results-${{ matrix.browser }}
gh_access_token: ${{ secrets.GITHUB_TOKEN }}
show_passed_tests: false