Create buildspec.yml #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |