Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Update example usage in README
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Balogh <[email protected]>
  • Loading branch information
javaducky committed Nov 20, 2023
1 parent e4714b7 commit 76ca5d0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Run k6 local test
uses: grafana/[email protected].0
uses: grafana/[email protected].1
with:
filename: my-load-test.js
flags: --vus 50 --duration 10s
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Run k6 cloud test
uses: grafana/[email protected].0
uses: grafana/[email protected].1
with:
filename: my-load-test.js
flags: --vus 50 --duration 10s
Expand All @@ -61,7 +61,7 @@ jobs:
```yaml
steps:
- name: Run k6 local test
uses: grafana/[email protected].0
uses: grafana/[email protected].1
with:
filename: my-script-file.js
```
Expand All @@ -75,7 +75,7 @@ environment: test
steps:
- name: Run k6 cloud test
uses: grafana/[email protected].0
uses: grafana/[email protected].1
with:
cloud: true
token: ${{ secrets.K6_CLOUD_API_TOKEN }}
Expand All @@ -88,7 +88,7 @@ Enables execution in the k6 cloud. Additional details on the k6 cloud offering a
```yaml
steps:
- name: Run k6 local test
uses: grafana/[email protected].0
uses: grafana/[email protected].1
with:
flags: --vus 50 --duration 10s
```
Expand All @@ -104,7 +104,7 @@ Environment variables can be added the same way as you do it [locally](https://k
```yaml
steps:
- name: Run k6 local test
uses: grafana/[email protected].0
uses: grafana/[email protected].1
with:
filename: my-script-file.js
flags: --env MY_VAR=42
Expand All @@ -115,7 +115,7 @@ Or can be scoped to the action step:
```yaml
steps:
- name: Run k6 local test
uses: grafana/[email protected].0
uses: grafana/[email protected].1
with:
filename: my-script-file.js
env:
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
uses: actions/checkout@v4
- name: Run local k6 test
uses: grafana/[email protected].0
uses: grafana/[email protected].1
with:
filename: script.js
env:
Expand All @@ -169,7 +169,7 @@ jobs:
uses: actions/checkout@v4
- name: Install k6
run: |
curl https://github.com/grafana/k6/releases/download/v0.44.0/k6-v0.44.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
curl https://github.com/grafana/k6/releases/download/v0.47.0/k6-v0.47.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
- name: Install packages
run: |
npm install
Expand Down

0 comments on commit 76ca5d0

Please sign in to comment.