Skip to content

Commit 6b389c2

Browse files
chore: clean k6 github action
1 parent 4de8486 commit 6b389c2

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy
1+
name: Check
22

33
on:
44
workflow_call:
@@ -18,9 +18,9 @@ jobs:
1818
-
1919
name: Checkout
2020
uses: actions/checkout@v4
21-
22-
- name: Run local k6 test
23-
uses: grafana/k6-action@v0.2.0
21+
-
22+
name: Run local k6 test
23+
uses: grafana/k6-action@v0.3.1
2424
with:
2525
filename: k6/script.js
2626
flags: --out json=results.json

k6/test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
2+
23
cd $(dirname $0)
4+
35
if [ -z "$TARGET" ]; then
4-
echo "Missing TARGET=pr-xxx-demo.api-platform.com" 1>&2
6+
echo "Missing TARGET argument (e.g.: pr-123-demo.api-platform.com)" 1>&2
57
exit 1
68
fi
9+
710
docker run \
811
--name k6 \
912
--rm -i \

0 commit comments

Comments
 (0)