Skip to content

Commit

Permalink
Create load-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JarDeVSon authored Apr 29, 2024
1 parent c807fa6 commit 38de58a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/load-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: scripts/

- 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 38de58a

Please sign in to comment.