Skip to content

Commit

Permalink
Rafatoração
Browse files Browse the repository at this point in the history
  • Loading branch information
thinogueiras committed Mar 9, 2024
1 parent 9fa1697 commit 3443aec
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/continuous-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,31 @@ on:

jobs:
api-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
continue-on-error: true
name: API Tests 🤖🤖

steps:
- 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

- name: API Tests 🧪🧪
run: robot -d ./reports -v EMAIL:${{ secrets.EMAIL }} -v PASSWORD:${{ secrets.PASSWORD }} tests

- name: Upload Reports 📖📖
- name: Publish Robot Reports 📄📄
if: always()
uses: actions/upload-artifact@v4
with:
name: Reports
name: Robot-Reports
path: reports
retention-days: 90
if-no-files-found: warn
Expand All @@ -52,4 +59,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: [api-tests]
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
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 }}

1 comment on commit 3443aec

@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
15 0 0 15 100 674.224999ms

Passed Tests

Name ⏱️ Duration Suite
Deve retornar todas as contas 0.030 s Accounts
Deve editar uma conta 0.052 s Accounts
Deve inserir uma conta 0.026 s Accounts
Não deve inserir uma conta com mesmo nome 0.029 s Accounts
Não deve remover conta com movimentação 0.050 s Accounts
Deve exigir autenticação 0.113 s Authorization
Deve validar o saldo da conta 0.051 s Balance
Deve retornar todas as Movimentações 0.025 s Movement
Deve inserir movimentação 0.065 s Movement
Deve validar os campos obrigatórios para a inserção de uma movimentação 0.023 s Movement
Não deve inserir movimentação com data futura 0.074 s Movement
Deve remover uma movimentação 0.047 s Movement
Deve validar o JSON Schema para Contas 0.027 s Schema
Deve validar o JSON Schema para Saldo 0.027 s Schema
Deve validar o JSON Schema para Movimentações 0.035 s Schema

Please sign in to comment.