Skip to content

on push - elzasimoes is testing web tests runner with rf and playwright #15

on push - elzasimoes is testing web tests runner with rf and playwright

on push - elzasimoes is testing web tests runner with rf and playwright #15

Workflow file for this run

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