E2E Tests #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E Tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
chrome: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get code | |
uses: actions/checkout@v4.1.7 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 20 | |
- name: Setup Python | |
uses: actions/setup-python@v5.1.0 | |
with: | |
python-version: 3.12 | |
- name: Install Deps | |
run: | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Browser Init | |
run: rfbrowser init | |
- name: Run E2E Tests | |
run: robot -d ./logs -v BROWSER:chromium tests | |
- name: Robot Reporter | |
uses: joonvena/robotframework-reporter-action@v2.4 | |
if: always() | |
with: | |
gh_access_token: ${{ secrets.GITHUB_TOKEN }} | |
report_path: logs | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4.3.4 | |
if: always() | |
with: | |
name: Chrome Test report | |
path: logs | |
firefox: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get code | |
uses: actions/checkout@v4.1.7 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 20 | |
- name: Setup Python | |
uses: actions/setup-python@v5.1.0 | |
with: | |
python-version: 3.12 | |
- name: Install Deps | |
run: | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Browser Init | |
run: rfbrowser init | |
- name: Run E2E Tests | |
run: robot -d ./logs -v BROWSER:firefox tests | |
- name: Robot Reporter | |
uses: joonvena/robotframework-reporter-action@v2.4 | |
if: always() | |
with: | |
gh_access_token: ${{ secrets.GITHUB_TOKEN }} | |
report_path: logs | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4.3.4 | |
if: always() | |
with: | |
name: Firefox Test report | |
path: logs |