Skip to content

chore: use a specific version #2

chore: use a specific version

chore: use a specific version #2

Workflow file for this run

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