-
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@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ">=1.17"
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: load-test-report
path: output/*