Skip to content

Commit 7e4eb5a

Browse files
authored
Run code blocks with latest k6 (#2027)
Run the code blocks example in documentation with the latest merge k6 instead of with latest release. As we only run the examples that are in the next folder - they will practically always fail if they are about new functionality. This also install chromium in the same way we run test in the k6 project.
1 parent 07d4a74 commit 7e4eb5a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/run-code-blocks.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ jobs:
2424
with:
2525
files: |
2626
docs/sources/k6/next/**/*.md
27-
- uses: grafana/setup-k6-action@v1
28-
with:
29-
browser: true
27+
- uses: actions/setup-go@v5
28+
- name: Install k6 from github master
29+
run: go install go.k6.io/k6@master
3030
- uses: actions/setup-python@v5
3131
with:
3232
python-version: '3.13'
33+
- name: Install chromium
34+
run: sudo apt update && sudo apt install chromium-browser
3335
- name: Check script readiness
3436
run: python -m unittest scripts/md-k6.py
3537
- name: Run Updated Code Blocks

0 commit comments

Comments
 (0)