inclusão do parâmetro headless no arquivo yaml #14
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: Pipleline Blog Agi Bank | |
on: [push, pull_request] | |
jobs: | |
test_robot_blogAGI: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
strategy: | |
matrix: | |
browser: [chromiun, firefox, webkit] | |
fail-fast: false | |
steps: | |
- name: Copiar os arquivos do projeto | |
uses: actions/[email protected] | |
- name: Instalar o python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Instalar o NodeJS | |
uses: actions/setup-node@v4 | |
- name: Instalar as Bibliotecas do projeto | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U -r requirements.txt | |
sudo npm install @playwright/test | |
sudo npx playwright install-deps | |
rfbrowser init | |
- name: Execução dos testes | |
run: | | |
robot -d ./results -v HEADLESS:true -v BROWSER${{matrix.browser}} tests | |
- name: Upload das evidências de teste | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: resultado dos testes ${{matrix.browser}} | |
path: ./results | |
if-no-files-found: ignore | |
retention-days: 2 | |
- name: Download do resultado dos testes | |
if: always() | |
uses: actions/download-artifact@v1 | |
with: | |
name: resultado dos testes ${{matrix.browser}} | |