Skip to content

Commit d10b2d2

Browse files
committed
Migrate k6 CI tests to new GH actions
1 parent 9f6c432 commit d10b2d2

File tree

3 files changed

+33
-107
lines changed

3 files changed

+33
-107
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 0 additions & 104 deletions
This file was deleted.

.github/workflows/example_multiple_scripts.yaml renamed to .github/workflows/k6_browser_tests.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Multiple Test Scripts Workflow
1+
name: Browser Tests Workflow
22
on: [push]
33

44
jobs:
5-
basic_k6_test:
6-
name: k6 test run - running multiple scripts
5+
k6_browser_tests:
6+
name: k6 test run - running all browser tests
77
runs-on: ubuntu-latest
88

99
services:
@@ -15,8 +15,11 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
18+
1819
- name: Setup k6
1920
uses: grafana/setup-k6-action@v1
21+
with:
22+
browser: true
2023
- name: Run k6 test
2124
uses: grafana/run-k6-action@v1
2225
with:

.github/workflows/k6_tests.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: All Foundation Tests Workflow
2+
on: [push]
3+
4+
jobs:
5+
k6_foundation_tests:
6+
name: k6 test run - running all foundations tests
7+
runs-on: ubuntu-latest
8+
9+
services:
10+
quickpizza:
11+
image: ghcr.io/grafana/quickpizza-local:latest
12+
ports:
13+
- 3333:3333
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup k6
20+
uses: grafana/setup-k6-action@v1
21+
- name: Run k6 test
22+
uses: grafana/run-k6-action@v1
23+
with:
24+
path: |
25+
./k6/foundations/*.js
26+
./k6/foundations/*.ts
27+
./k6/internal/*.js

0 commit comments

Comments
 (0)