-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (59 loc) · 1.89 KB
/
actions.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
name: Crystal Specs
on:
push:
paths:
- '**'
- '!**.md'
pull_request:
paths:
- '**'
- '!**.md'
jobs:
test:
name: Crystal Specs
runs-on: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create Kind Cluster
run: |
export CLUSTER=$(uuidgen)
echo "export CLUSTER=$CLUSTER" > cluster.env
echo kind create cluster --name $CLUSTER --kubeconfig ./$CLUSTER.conf
kind --version
kind create cluster --name $CLUSTER --kubeconfig ./$CLUSTER.conf
export KUBECONFIG=$(pwd)/$CLUSTER.conf
kubectl get nodes
- name: Setup CNF-Conformance
run: |
helm repo add stable https://cncf.gitlab.io/stable
git fetch --all --tags --force
- name: Install Testsuite
run: |
source <(curl -s https://raw.githubusercontent.com/cncf/cnf-testsuite/main/curl_install.sh)
- name: Check Testsuite
run: |
export PATH=$HOME/.cnf-testsuite:$PATH
~/.cnf-testsuite/cnf-testsuite version
- name: Install Open5gs
run: |
export PATH=$HOME/.cnf-testsuite:$PATH
source cluster.env
export KUBECONFIG=$(pwd)/$CLUSTER.conf
~/.cnf-testsuite/cnf-testsuite -l info cnf_setup cnf-config=./sample-open5gs/cnf-testsuite.yml
~/.cnf-testsuite/cnf-testsuite -l info cnf_setup cnf-config=./sample-ueransim/cnf-testsuite.yml
- name: Run Cert for Open5gs
run: |
export PATH=$HOME/.cnf-testsuite:$PATH
source cluster.env
export KUBECONFIG=$(pwd)/$CLUSTER.conf
~/.cnf-testsuite/cnf-testsuite cert ~cert_resilience ~cni_compatible
- name: Delete Cluster
if: ${{ always() }}
run: |
source cluster.env
kind delete cluster --name $CLUSTER
docker container prune -f || true
docker volume prune -f || true