chore: use a specific version #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: | |
branches: | |
- main # Run tests on push to main branch | |
jobs: | |
run-k6-tests: | |
runs-on: ubuntu-latest | |
name: Run K6 Load Test | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn install | |
- name: Setup K6 | |
uses: grafana/setup-k6-action@v1 | |
with: | |
k6-version: "0.54.0" | |
- name: Run K6 test | |
uses: grafana/run-k6-action@v1 | |
with: | |
path: src/index.ts | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: k6-report | |
path: report.html |