-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (53 loc) · 1.52 KB
/
clusters.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
61
62
63
name: Tyk Clusters Tests
# Controls when the workflow will run
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
env:
MAX_ATTEMPTS: 3
TIMEOUT: 30
jobs:
tyk-clusters:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cluster:
- v1.21.14
- v1.22.15
- v1.23.13
max-parallel: 3
steps:
- uses: actions/checkout@v2
- name: start Minikube
uses: medyagh/setup-minikube@latest
with:
kubernetes-version: "${{ matrix.cluster }}"
extra-config: 'kubelet.max-pods=100'
addons: 'default-storageclass,storage-provisioner,ingress'
start-args: '--force'
- name: Install helm
uses: Azure/[email protected]
- name: Install newman
run: |
sudo apt update && \
sudo apt install nodejs npm -y && \
npm install -g newman
- name: Copy .env file
run: cp .env.example .env
- name: Deploy tyk-stack on ${{ matrix.cluster }}
uses: nick-invision/retry@v2
with:
max_attempts: ${{ env.MAX_ATTEMPTS }}
timeout_minutes: ${{ env.TIMEOUT }}
command: |
LICENSE="${{ secrets.LICENSE }}" \
MDCB_LICENSE="${{ secrets.MDCB_LICENSE }}" \
./up.sh -v tyk-stack
- name: Sleep 1 minute
run: sleep 60
- name: Test Tyk deployment
run: newman run --folder gateway --env-var "deployment=control-plane" tyk-k8s-demo.postman_collection.json