Voltando a trigger de das branches para main #13
This file contains hidden or 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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
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.2 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 20 | |
- name: Setup Python | |
uses: actions/setup-python@v5.0.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 Report | |
uses: actions/upload-pages-artifact@v3.0.1 | |
if: always() | |
with: | |
name: Test report Chrome | |
path: logs | |
firefox: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get code | |
uses: actions/checkout@v4.1.2 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 20 | |
- name: Setup Python | |
uses: actions/setup-python@v5.0.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 Report Firefox | |
uses: actions/upload-pages-artifact@v3.0.1 | |
if: always() | |
with: | |
name: Test report | |
path: logs |