Skip to content

update readme

update readme #16

Workflow file for this run

name: K6 Performance Tests
on:
push:
branches:
- main
workflow_dispatch: #
jobs:
performance-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install k6
run: |
sudo apt-get update && sudo apt-get install ca-certificates -y
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 dependencies
run: npm ci
- name: Start server
run: |
npm run start:server &
sleep 5
- name: Run load tests
run: npm run test:load
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: reports
path: ./reports
- name: Publish test report
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./reports
publish_branch: gh-pages