Skip to content

Commit 91a22a7

Browse files
authored
Add deploy preview workflow (#2014)
* Add deploy preview workflow Signed-off-by: Jack Baldry <[email protected]> * Make some quick edits for style Signed-off-by: Jack Baldry <[email protected]> * fixup! Add deploy preview workflow * fixup! fixup! Add deploy preview workflow * fixup! fixup! Add deploy preview workflow * fixup! fixup! fixup! Add deploy preview workflow Signed-off-by: Jack Baldry <[email protected]> * Try with next as latest Signed-off-by: Jack Baldry <[email protected]> --------- Signed-off-by: Jack Baldry <[email protected]>
1 parent 84d70d8 commit 91a22a7

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy pr preview
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- closed
9+
paths:
10+
- "docs/sources/k6/**"
11+
12+
jobs:
13+
deploy-pr-preview:
14+
if: "!github.event.pull_request.head.repo.fork"
15+
uses: grafana/writers-toolkit/.github/workflows/deploy-preview.yml@main
16+
with:
17+
branch: ${{ github.head_ref }}
18+
event_number: ${{ github.event.number }}
19+
repo: k6-docs
20+
sha: ${{ github.event.pull_request.head.sha }}
21+
sources: |
22+
[
23+
{
24+
"relative_prefix": "/docs/k6/",
25+
"repo": "k6-docs",
26+
"source_directory": "docs/sources/k6",
27+
"website_directory": "content/docs/k6"
28+
},
29+
{
30+
"relative_prefix": "/docs/k6/latest",
31+
"repo": "k6-docs",
32+
"source_directory": "docs/sources/k6/next",
33+
"website_directory": "content/docs/k6/latest"
34+
}
35+
]
36+
title: ${{ github.event.pull_request.title }}

docs/sources/k6/next/get-started/resources.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ These resources help you write and run k6 tests in a safe environment and explor
2727

2828
## Test servers
2929

30-
If you need a place to learn k6 and test your scripts, you can use these playground/demo applications:
30+
If you need a place to learn k6 and test your scripts, you can use these demo applications:
3131

32-
- [grafana/quickpizza](https://github.com/grafana/quickpizza). A simple demo web application.
32+
- [`grafana/quickpizza`](https://github.com/grafana/quickpizza). A demo web application.
3333

34-
Note that these are shared testing environments - please avoid high-load tests. Alternatively, you can deploy and host them on your infrastructure and run the examples in the repository.
34+
{{< admonition type="note" >}}
35+
These are testing environments shared by everyone - avoid high-load tests.
36+
37+
If you want to run tests with high loads, you can deploy and host them on your infrastructure and run the examples in the repository.
38+
{{< /admonition >}}
3539

3640
## k6 + your favorite tool
3741

0 commit comments

Comments
 (0)