Backend Load Test #32
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: Backend Load Test | |
on: | |
schedule: | |
# At 03:00 on day-of-month 15 | |
- cron: '0 3 15 * *' | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: k6 | |
jobs: | |
k6-local-tests: | |
name: K6 Local Tests | |
runs-on: ubuntu-latest | |
env: | |
BASE_URL: ${{ secrets.K6_TEST_BASE_URL }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install k6 | |
run: | | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C5AD17C747E3415A3642D57D77C6C491D6AC1D69 | |
echo "deb https://dl.k6.io/deb stable main" | sudo tee /etc/apt/sources.list.d/k6.list | |
sudo apt-get update | |
sudo apt-get install k6 | |
- name: Install yarn dependencies | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: API Test | |
run: > | |
k6 run | |
--summary-trend-stats "min,avg,med,max,p(90),p(95),p(99)" | |
dist/api-test.js | |
- name: Smoke Test | |
run: > | |
k6 run | |
--summary-trend-stats "min,avg,med,max,p(90),p(95),p(99)" | |
dist/smoke-test.js | |
- name: Load Test | |
run: > | |
k6 run | |
--summary-trend-stats "min,avg,med,max,p(90),p(95),p(99)" | |
dist/load-test.js | |