[ovs-dev] [PATCHv2] github-ci: Enable github actions.

William Tu u9012063 at gmail.com
Tue Mar 24 18:58:26 UTC 2020


This enables per-commit check for 'make check-system-userspace'
test using github action[1].  Currently this runs on ubuntu-1804
runner with everything PASS:
  93 tests were successful.
  43 tests were skipped.

Example:
https://github.com/williamtu/ovs-travis/runs/531402137?check_suite_focus=true

[1] https://github.com/features/actions

Signed-off-by: William Tu <u9012063 at gmail.com>
---
 .github/workflows/ovs.yml | 26 ++++++++++++++++++++++++++
 Makefile.am               |  1 +
 2 files changed, 27 insertions(+)
 create mode 100644 .github/workflows/ovs.yml

diff --git a/.github/workflows/ovs.yml b/.github/workflows/ovs.yml
new file mode 100644
index 000000000000..ccc95641b43c
--- /dev/null
+++ b/.github/workflows/ovs.yml
@@ -0,0 +1,26 @@
+name: OVS system-userspace Test
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build:
+    runs-on: [ubuntu-18.04]
+    steps:
+    - uses: actions/checkout at v2
+    - name: build iproute2-5.0.0
+      run:  sudo apt install -y bison flex; git clone -b v5.0.0 git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git; cd iproute2; ./configure && make -j2 && sudo make install
+    - name: configure
+      run: ./boot.sh; ./configure
+    - name: make
+      run: make -j2
+    - name: check-system-userspace
+      run: sudo make check-system-userspace RECHECK=yes
+    - name: Upload artifact
+      uses: actions/upload-artifact at v1.0.0
+      with:
+        name: system-userspace
+        path: tests/system-userspace-testsuite.log
diff --git a/Makefile.am b/Makefile.am
index b279303d186c..80448d0c31c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -92,6 +92,7 @@ EXTRA_DIST = \
 	$(MAN_ROOTS) \
 	Vagrantfile \
 	Vagrantfile-FreeBSD \
+	.github/workflows/ovs.yml \
 	.mailmap
 bin_PROGRAMS =
 sbin_PROGRAMS =
-- 
2.7.4



More information about the dev mailing list