forked from projectcapsule/capsule-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (55 loc) · 1.66 KB
/
e2e.yaml
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: e2e
on:
push:
branches: [ "issues/257" ]
paths:
- '.github/workflows/e2e.yaml'
- 'e2e/**'
- 'internal/**'
- 'Dockerfile'
- 'go.*'
- 'main.go'
- 'Makefile'
pull_request:
branches: [ "issues/257" ]
paths:
- '.github/workflows/e2e.yaml'
- 'e2e/**'
- 'internal/**'
- 'Dockerfile'
- 'go.*'
- 'main.go'
- 'Makefile'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
kind:
name: Kubernetes
strategy:
fail-fast: false
matrix:
k8s-version: [ 'v1.16.15', 'v1.17.11', 'v1.18.8', 'v1.19.4', 'v1.20.7', 'v1.21.2', 'v1.22.0' ]
capsule-proxy-mode: [ 'https', 'http' ]
test-clients: [ 'kubectl', 'curl' ]
runs-on: ubuntu-18.04
timeout-minutes: 20
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814
with:
version: 3.3.4
- name: Installing BATS
run: sudo apt-get install -y bats
- name: Installing jq
run: sudo apt-get install -y jq
- name: e2e testing
run: CLIENT_TEST=${{ matrix.test-clients }} CAPSULE_PROXY_MODE=${{ matrix.capsule-proxy-mode }} KIND_K8S_VERSION=${{ matrix.k8s-version }} make e2e
- name: Dumping Capsule logs
if: failure()
run: kubectl -n capsule-system logs -l app.kubernetes.io/instance=capsule
- name: Dumping Capsule Proxy logs
if: failure()
run: kubectl -n capsule-system logs -l app.kubernetes.io/instance=capsule-proxy