-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.33 KB
/
e2e.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
59
60
name: DGate E2E
on:
push:
branches: [ "**" ]
env:
env_var:
jobs:
k6_load_test:
name: k6 Load Test
runs-on: ubuntu-latest
env:
PORT: 8080
PORT_SSL: 8443
PROXY_URL: http://localhost:8080
ADMIN_URL: http://localhost:9080
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Build & Install
run: |
go mod download
go build -v ./...
- name: Install dgate-cli and dgate-server
run: |
go install github.com/dgate-io/dgate/cmd/dgate-cli
dgate-cli --version
go install github.com/dgate-io/dgate/cmd/dgate-server
dgate-server --version
- run: go run cmd/dgate-server/main.go &
- name: Wait for server to start
run: sleep 5
- name: Install jq
run: |
sudo apt install -y jq
jq --version
- name: Functional Tests
run: |
for i in functional-tests/admin_tests/*.sh; \
do bash -c $i; done
- name: Run local k6 test
uses: grafana/[email protected]
with:
filename: performance-tests/perf-test.js