Skip to content

Commit 89bae73

Browse files
committed
feat: Adicionando Github Pages no workflow e README
1 parent 5690246 commit 89bae73

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/workflow-testes-automatizados-api-serve-rest-postman-newman.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ jobs:
1414
# agente de execução/runner
1515
runs-on: ubuntu-latest
1616

17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
21+
22+
environment:
23+
name: github-pages
24+
url: https://andressakarla.github.io/testes-automatizados-api-serve-rest_postman/postman-api-serve-rest-report-htmlextra-newman.html
25+
1726
steps:
1827
- name: Passo 1 - Obter cópia do código-fonte do repositório
1928
uses: actions/checkout@v3
@@ -38,3 +47,26 @@ jobs:
3847
path: ./reports
3948
# armazena o report html por 30 dias
4049
retention-days: 30
50+
51+
- name: Passo 6 - Configurar pages
52+
if: ${{ always() }}
53+
uses: actions/configure-pages@v2
54+
55+
- name: Passo 7 - Baixar report html armazenado no "Passo 5 - Armazenar report html"
56+
if: ${{ always() }}
57+
uses: actions/download-artifact@v4
58+
with:
59+
name: postman-api-serve-rest-report-html-newman
60+
path: ./reports
61+
62+
- name: Passo 8 - Armazenar pages
63+
if: ${{ always() }}
64+
uses: actions/upload-pages-artifact@v1
65+
with:
66+
path: ./reports
67+
retention-days: 30
68+
69+
- name: Passo 9 - Deploy/Publicar no Github Pages na "url" configurada em "postman-newman-api-serve-rest > environment"
70+
if: ${{ always() }}
71+
id: deployment
72+
uses: actions/deploy-pages@v1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
# Projeto de Testes Funcionais Automatizados de API REST | Postman | Javascript | JSON Schema | Newman | GitHub Actions :test_tube:
2+
# Projeto de Testes Funcionais Automatizados de API REST | Postman | Javascript | JSON Schema | Newman | GitHub Actions | GitHub Pages :test_tube:
33
---
44
# :information_source: Introdução
5-
Esse projeto "testes-automatizados-api-serve-rest_postman" é executado em um ambiente de produção na ["API REST"](https://serverest.dev) do ["ServeRest"](https://github.com/ServeRest) que simula uma loja virtual, com o objetivo de praticar ainda mais validações de testes de API (Ex.: JSON Schema, geração de massa de dados dinâmicos, etc) em Postman, Javascript, Newman e GitHub Actions.
5+
Esse projeto "testes-automatizados-api-serve-rest_postman" é executado em um ambiente de produção na ["API REST"](https://serverest.dev) do ["ServeRest"](https://github.com/ServeRest) que simula uma loja virtual, com o objetivo de praticar ainda mais validações de testes de API (Ex.: JSON Schema, geração de massa de dados dinâmicos, etc) em Postman, Javascript, Newman, GitHub Actions e GitHub Pages.
66

77
---
88
# :dart: Executar com Newman testes automatizados de API REST da collection e environment do Postman, Gerar e armazenar report html no GitHub Actions

0 commit comments

Comments
 (0)