Add release notes for Grafana k6 version 1.6.0 #720
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Updated Code Blocks (Scripts) | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'docs/sources/k6/next/**/*.md' | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| run-code-blocks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Get Changed files | |
| id: changed-files | |
| uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1 | |
| with: | |
| files: | | |
| docs/sources/k6/next/**/*.md | |
| - uses: actions/setup-go@v5 | |
| - name: Install k6 from github master | |
| run: go install go.k6.io/k6@master | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Install chromium | |
| run: sudo apt update && sudo apt install chromium-browser | |
| - name: Check script readiness | |
| run: python -m unittest scripts/md-k6.py | |
| - name: Run Updated Code Blocks | |
| env: | |
| ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
| run: | | |
| for file in ${ALL_CHANGED_FILES}; do | |
| python -u scripts/md-k6.py --duration 2s "$file" --index-file docs/sources/k6/_index.md | |
| done |