-
Notifications
You must be signed in to change notification settings - Fork 29
52 lines (51 loc) · 1.46 KB
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
basic:
strategy:
matrix:
# Run tests of ovn-fake-multinode built on multiple supported base
# images.
image:
# The default behavior without setting "url" and "base" variables
# is expected to work and will use "fedora:latest" as a base image.
- url: ""
base: ""
# Latest Ubuntu base image
- url: ubuntu:rolling
base: ubuntu
env:
RUNC_CMD: podman
OVN_SRC_PATH: ovn_git
OVS_SRC_PATH: ovn_git/ovs
# https://github.com/actions/runner-images/issues/6282
XDG_RUNTIME_DIR: ''
OS_IMAGE: ${{ matrix.image.url }}
OS_BASE: ${{ matrix.image.base }}
runs-on: ubuntu-latest
steps:
- name: Download ovn-fake-multinode
uses: actions/checkout@v3
- name: Download OVN main
uses: actions/checkout@v3
with:
repository: ovn-org/ovn
path: ovn_git
fetch-depth: 1
submodules: true
- name: Install dependencies
run: |
sudo apt update
sudo apt install podman openvswitch-switch
- name: Build images
run: sudo -E ./ovn_cluster.sh build
- name: Start basic cluster
run: sudo -E ./ovn_cluster.sh start
- name: Run basic test script
run: sudo ./.ci/test_basic.sh
- name: Stop cluster
run: sudo -E ./ovn_cluster.sh stop