Skip to content

Commit

Permalink
chore: clean k6 github action
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Dec 18, 2023
1 parent 46cfd23 commit 1e5d283
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy
name: Check

on:
workflow_call:
Expand All @@ -18,9 +18,9 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4

- name: Run local k6 test
uses: grafana/k6-action@v0.2.0
-
name: Run local k6 test
uses: grafana/k6-action@v0.3.1
with:
filename: k6/script.js
flags: --out json=results.json
Expand Down
5 changes: 4 additions & 1 deletion k6/test.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

cd $(dirname $0)

if [ -z "$TARGET" ]; then
echo "Missing TARGET=pr-xxx-demo.api-platform.com" 1>&2
echo "Missing TARGET argument (e.g.: pr-123-demo.api-platform.com)" 1>&2
exit 1
fi

docker run \
--name k6 \
--rm -i \
Expand Down

0 comments on commit 1e5d283

Please sign in to comment.