Artillery Load Test #4
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: Artillery Load Test | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/artillery.js' | |
workflow_dispatch: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
type: choice | |
options: | |
- warning | |
jobs: | |
artillery: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Execute load tests | |
uses: artilleryio/action-cli@v1 | |
with: | |
command: run artillery.yml --output report-artillery.json | |
working-directory: ./src | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: artillery-report | |
path: ./report-artillery.json # reference the generated report in the file system |