Skip to content

Commit

Permalink
Update k6-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoOliver authored Oct 10, 2024
1 parent 75b1269 commit 5086959
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/k6-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ jobs:
# Executa o teste de carga K6
- name: Run K6 Load Test
run: |
k6 run .\testes\load_test_Portal_Diligencia.js
k6 run .\tests\load_test_Portal_Diligencia.js
# Listar conteúdo do diretório de resultados
- name: List results directory
run: |
dir .\results\k6-results\
# Verifica se o arquivo de relatório foi criado
- name: Check if report file exists
run: |
if (Test-Path -Path ./results/k6-results/post-load-test-report.html) {
if (Test-Path -Path .\results\k6-results\post-load-test-report.html) {
Write-Host "Report file exists."
} else {
Write-Host "Report file does not exist."
exit 1
}
# Listar conteúdo do diretório de resultados
- name: List results directory
run: |
dir ./results/k6-results/
# Publica os resultados como artefato (opcional)
- name: Upload K6 Results
if: success()
Expand Down

0 comments on commit 5086959

Please sign in to comment.