Skip to content

Commit

Permalink
Ajustes / Melhorias no pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
thinogueiras committed Mar 13, 2024
1 parent 35b3ef4 commit 768a418
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: BrowserStack Tests
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]

jobs:
tests:
Expand All @@ -13,6 +15,11 @@ jobs:
- name: Checkout 🚀🚀
uses: actions/checkout@v4

- name: Setup Python 🔧🔧
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies ➕➕
run: pip install -r requirements.txt

Expand All @@ -25,11 +32,11 @@ jobs:
- name: Run tests 🧪🧪
run: browserstack-sdk robot -d ./reports -i browserstack tests/

- name: Upload Reports 📖📖
- name: Publish Robot Reports 📄📄
uses: actions/upload-artifact@v4
if: always()
with:
name: Reports
name: Robot-Reports
path: reports
retention-days: 90
if-no-files-found: warn
Expand All @@ -56,4 +63,24 @@ jobs:
SLACK_ICON: https://cdn-icons-png.flaticon.com/512/3271/3271351.png
SLACK_TITLE: 'Some tests failed'
SLACK_MESSAGE: ':fire: Tests failed :fire:'
SLACK_USERNAME: FAILURE
SLACK_USERNAME: FAILURE

reports:
if: always()
needs: [tests]
runs-on: ubuntu-latest
continue-on-error: true
name: Reports 📄📄
steps:
- uses: actions/checkout@v4

- name: Download Robot Reports
uses: actions/download-artifact@v4
with:
name: Robot-Reports
path: reports

- name: Send report to commit
uses: joonvena/[email protected]
with:
gh_access_token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Automação de testes Mobile com Robot Framework e Appium.

[![BrowserStack Tests](https://github.com/thinogueiras/Robot-Appium-Tests/actions/workflows/browserStack-ci.yml/badge.svg?branch=main)](https://github.com/thinogueiras/Robot-Appium-Tests/actions/workflows/browserStack-ci.yml)
[![BrowserStack Tests](https://github.com/thinogueiras/Robot-Appium-BrowserStack/actions/workflows/browserstack-testing.yml/badge.svg?branch=main)](https://github.com/thinogueiras/Robot-Appium-Tests/actions/workflows/browserstack-testing.yml)

## Pré-requisitos mínimos de ambiente:

[Java](https://www.oracle.com/br/java/technologies/downloads/#java11) 11.0.x.

[Node.js](https://nodejs.org/en) 18.17.x.

[Python](https://www.python.org/downloads/) 3.10.x.
[Python](https://www.python.org/downloads/) 3.11.x.

[Android Studio](https://developer.android.com/studio).

Expand Down

1 comment on commit 768a418

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
3 0 0 3 100 2m3.744213s

Passed Tests

Name ⏱️ Duration Suite
Deve marcar as techs que usam Appium 41.797 s Checkbox
Deve arrastar o Luke Skywalker para o topo da lista 47.712 s Drag Drop
Deve selecionar a opcao Python 34.235 s Radio

Please sign in to comment.