generated from knative-extensions/sample-controller
-
Notifications
You must be signed in to change notification settings - Fork 52
72 lines (60 loc) · 1.9 KB
/
kind-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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: e2e
on:
pull_request:
branches: [ 'main' ]
defaults:
run:
shell: bash
jobs:
kind:
runs-on: ubuntu-latest
strategy:
fail-fast: false # Keep running if one leg fails.
matrix:
k8s-version:
- v1.25.x
- v1.26.x
- v1.27.x
env:
KO_DOCKER_REPO: registry.local:5000/knative # registry setup by setup-kind
# Use a semi-random cluster suffix, but somewhat predictable
# so reruns don't just give us a completely new value.
CLUSTER_DOMAIN: c${{ github.run_id }}.local
steps:
- name: Set up Go 1.19.x
uses: actions/setup-go@v3
with:
go-version: 1.19.x
- uses: imjasonh/[email protected]
- name: Setup KinD
uses: chainguard-dev/actions/setup-kind@main
with:
k8s-version: ${{ matrix.k8s-version }}
kind-worker-count: 3
cluster-suffix: ${{ env.CLUSTER_DOMAIN }}
- uses: actions/checkout@v3
- name: test
run: |
./test/e2e-tests.sh \
--run-tests \
--kind \
--skip-dump-on-failure
- uses: chainguard-dev/actions/kind-diag@main
if: ${{ failure() }}
with:
cluster-resources: nodes,namespaces,crds
namespace-resources: pods,svc,king,httpproxy
artifact-name: logs-${{ matrix.k8s-version }}
- name: Post failure notice to Slack
uses: rtCamp/[email protected]
if: ${{ failure() && github.event_name != 'pull_request' }}
env:
SLACK_ICON: http://github.com/knative.png?size=48
SLACK_USERNAME: github-actions
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: 'net-contour'
SLACK_COLOR: '#8E1600'
MSG_MINIMAL: 'true'
SLACK_TITLE: Periodic ${{ matrix.k8s-version }} failed.
SLACK_MESSAGE: |
For detailed logs: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}