1
- name : k6 - Test Suite
1
+ name : k6 - Test Suite
2
2
on : [push]
3
3
4
4
jobs :
@@ -10,11 +10,11 @@ jobs:
10
10
image : ghcr.io/grafana/quickpizza-local:latest
11
11
ports :
12
12
- 3333:3333
13
-
13
+
14
14
steps :
15
15
- name : Checkout
16
16
uses : actions/checkout@v4
17
-
17
+
18
18
# Enable cache for system files: https://github.com/actions/toolkit/issues/946
19
19
- name : root suid tar
20
20
run : sudo chown root /bin/tar && sudo chmod u+s /bin/tar
@@ -29,25 +29,25 @@ jobs:
29
29
# cannot use the k6 docker image because it does not allow executing shell commands
30
30
- name : Install k6 in Ubuntu
31
31
if : steps.cache-k6.outputs.cache-hit != 'true'
32
- run : |
32
+ run : |
33
33
sudo gpg -k
34
34
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/k6-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C5AD17C747E3415A3642D57D77C6C491D6AC1D69
35
35
echo "deb [signed-by=/usr/share/keyrings/k6-archive-keyring.gpg] https://dl.k6.io/deb stable main" | sudo tee /etc/apt/sources.list.d/k6.list
36
36
sudo apt-get update
37
37
sudo apt-get install k6
38
-
38
+
39
39
# Install Chrome (or chromium) when using ACT, as the default ACT image does not include it.
40
40
# Note that running the browser in a container like Snap or Flatpak is not supported.
41
41
- name : Install chrome
42
42
if : ${{ env.ACT }}
43
- run : |
43
+ run : |
44
44
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
45
45
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
46
46
sudo apt update && sudo apt install -y google-chrome-stable
47
47
48
48
# If you plan to run ACT on Apple Silicon, be aware that Chrome has not yet released an arm64 version. In this case, you have to:
49
49
# 1. Enable the option on Docker Desktop: `Use Rosetta for x86/amd64 emulation on Apple Silicon`
50
- # 2. Run ACT using the `--container-architecture linux/amd64` flag. For example:
50
+ # 2. Run ACT using the `--container-architecture linux/amd64` flag. For example:
51
51
# act -W .github/workflows/k6-tests.yaml --container-architecture linux/amd64
52
52
53
53
- name : Run k6 foundations tests
0 commit comments