-
Notifications
You must be signed in to change notification settings - Fork 21
58 lines (42 loc) · 1.25 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: test
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: download k6 binary
run: curl -fsSL https://github.com/grafana/k6/releases/download/v0.50.0/k6-v0.50.0-linux-amd64.tar.gz | tar -xvz
- name: move downloaded k6 binary to current directory
run: mv k6-*/k6 .
- name: Upload k6 binary
uses: actions/upload-artifact@v3
with:
name: k6
path: k6
test-base:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download k6 binary
uses: actions/download-artifact@v3
with:
name: k6
- name: Ensure proper permissions on k6 executable
run: chmod +x k6
- name: Run tests with compatibility-mode=base
run: ./k6 run --compatibility-mode=base tests/testSuiteBase.js
test-extended:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download k6 binary
uses: actions/download-artifact@v3
with:
name: k6
- name: Ensure proper permissions on k6 executable
run: chmod +x k6
- name: Run tests
run: ./k6 run tests/testSuite.js