-
Notifications
You must be signed in to change notification settings - Fork 123
50 lines (46 loc) · 1.15 KB
/
k8s-calico.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
name: K8s-Calico-Cluster-Sanity-CI
on:
schedule:
# Runs "At 13:00 UTC every day-of-week"
- cron: '0 13 * * *'
workflow_dispatch:
inputs:
testName:
description: 'Test Run-Name'
required: true
default: 'k8s-calico-cluster'
jobs:
build:
name: k8s-calico-cluster-sanity
runs-on: self-hosted
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Run the test
run: |
cd cicd/k8s-calico
./config.sh
./validation.sh
cd -
- name: Clean test-bed
if: success() || failure()
run: |
cd cicd/k8s-calico || true
./rmconfig.sh
cd -
- name: Run the U22 test
run: |
cd cicd/k8s-calico-ubuntu22
./config.sh
./validation.sh
cd -
- name: Clean U22 test-bed
if: success() || failure()
run: |
cd cicd/k8s-calico-ubuntu22 || true
./rmconfig.sh
cd -