Skip to content

Commit d28b901

Browse files
author
Nikita Filonov
committed
Update load-tests.yaml
1 parent 4b46775 commit d28b901

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/load-tests.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@ jobs:
3131
python -m pip install --upgrade pip
3232
pip install -r requirements.txt
3333
34+
- name: Create report directory
35+
run: mkdir -p ./reports/${{ github.run_id }}
36+
3437
- name: Run load tests and generate HTML report
35-
run: locust --config=${{ github.event.inputs.SCENARIO }} --html=index.html
38+
run: locust --config=${{ github.event.inputs.SCENARIO }} --html=./reports/${{ github.run_id }}/index.html
3639

3740
- name: Upload Locust reports
3841
if: always()
3942
uses: actions/upload-artifact@v4
4043
with:
41-
name: report
42-
path: index.html
44+
name: reports
45+
path: reports
4346

4447
publish-report:
4548
if: always()
@@ -50,13 +53,13 @@ jobs:
5053
- name: Download Locust reports
5154
uses: actions/download-artifact@v4
5255
with:
53-
name: report
54-
path: public
56+
name: reports
57+
path: reports
5558

5659
- name: Deploy HTML report to GitHub Pages
5760
uses: peaceiris/actions-gh-pages@v4
5861
with:
5962
github_token: ${{ secrets.GITHUB_TOKEN }}
6063
keep_files: true
61-
publish_dir: public
64+
publish_dir: reports
6265
publish_branch: gh-pages

0 commit comments

Comments
 (0)