-
Notifications
You must be signed in to change notification settings - Fork 10
110 lines (106 loc) · 3.61 KB
/
scheduled_distros.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2021
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
name: Scheduled All Linux Distros Supported verification
# yamllint disable-line rule:truthy
on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
generate-json-matrix:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Get matrix values
id: set-matrix
run: |
if ! command -v shyaml; then
pip install shyaml
fi
output=""
for os in $(shyaml keys < distros_supported.yml); do
for release in $(shyaml keys "$os" < distros_supported.yml); do
output+="{\"os\": \"$os\", \"release\": \"$release\"},"
done
done
length=${#output}
echo "matrix=[${output::length-1}]" >> "$GITHUB_OUTPUT"
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
check-all-distros:
name: Check all Linux Distributions supported in an All-in-One setup
runs-on: macos-12
needs: generate-json-matrix
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.generate-json-matrix.outputs.matrix) }}
steps:
- uses: actions/[email protected]
- name: Running Flannel CNI with ContainerD runtime
if: ${{ always() }}
uses: ./.github/actions/vagrant-up
with:
os: ${{ matrix.os }}
release: ${{ matrix.release }}
network-plugin: flannel
container-runtime: containerd
test-multinode: true
run-benchmarks: true
- name: Running Calico CNI with ContainerD runtime
if: ${{ always() }}
uses: ./.github/actions/vagrant-up
with:
os: ${{ matrix.os }}
release: ${{ matrix.release }}
network-plugin: calico
container-runtime: containerd
test-multinode: true
run-benchmarks: true
- name: Running Cilium CNI with ContainerD runtime
if: ${{ always() }}
uses: ./.github/actions/vagrant-up
with:
os: ${{ matrix.os }}
release: ${{ matrix.release }}
network-plugin: cilium
container-runtime: containerd
test-multinode: true
run-benchmarks: true
- name: Running Flannel CNI with CRI-O runtime
if: ${{ always() }}
uses: ./.github/actions/vagrant-up
with:
os: ${{ matrix.os }}
release: ${{ matrix.release }}
network-plugin: flannel
container-runtime: crio
test-multinode: true
run-benchmarks: true
- name: Running Calico CNI with CRI-O runtime
if: ${{ always() }}
uses: ./.github/actions/vagrant-up
with:
os: ${{ matrix.os }}
release: ${{ matrix.release }}
network-plugin: calico
container-runtime: crio
test-multinode: true
run-benchmarks: true
- name: Running Cilium CNI with CRI-O runtime
if: ${{ always() }}
uses: ./.github/actions/vagrant-up
with:
os: ${{ matrix.os }}
release: ${{ matrix.release }}
network-plugin: cilium
container-runtime: crio
test-multinode: true
run-benchmarks: true