-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.26 KB
/
e2e_testing.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
name: e2e testing
on:
push:
workflow_dispatch:
permissions:
contents: read
jobs:
e2e-test:
name: Run scenarigo and k6 test
runs-on: ubuntu-latest
steps:
- name: set up go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ">=1.17"
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Run scenario test
run: |
go install github.com/zoncoen/scenarigo/cmd/scenarigo@v0.14.2
./e2e/scenario_setup.sh
curl http://localhost:8081/shells/smart.festo.com%2Fdemo%2Faas%2F1%2F1%2F454576463545648365874
docker-compose -f e2e/docker-compose.yaml logs
scenarigo run -c e2e/scenario/scenariogo.yaml
- name: Install k6
run: |
curl https://github.com/grafana/k6/releases/download/v0.45.1/k6-v0.45.1-linux-amd64.tar.gz -L | tar xvz --strip-components 1
- name: Run load test
run: |
mkdir -p output
./k6 run e2e/k6-load/local_test.js
- name: Archive load test results
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: load-test-report
path: output/*