Skip to content

Commit

Permalink
Create load-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DjalmaHenry committed May 13, 2023
1 parent e427236 commit 18ccf67
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/load-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: K6 load test
on: [push]
permissions:
contents: write
jobs:
build:
name: K6 load test
runs-on: ubuntu-latest
steps:
- name: step 1 - checkout
uses: actions/checkout@v3

- name: step 2 - run k6 load test
uses: grafana/k6-action@v0.2.0
with:
filename: loginUsers.js

- run: ls & mkdir report & mv index.html report

- name: step 3 - upload artifact
uses: actions/upload-artifact@v3
with:
name: relatorio de testes de performance
path: report

- name: step 4 - publish report
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: report

0 comments on commit 18ccf67

Please sign in to comment.