diff mbox series

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

Message ID 1585076306-97012-1-git-send-email-u9012063@gmail.com
State New
Headers show
Series [ovs-dev,PATCHv2] github-ci: Enable github actions. | expand

Commit Message

William Tu March 24, 2020, 6:58 p.m. UTC
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@gmail.com>
---
 .github/workflows/ovs.yml | 26 ++++++++++++++++++++++++++
 Makefile.am               |  1 +
 2 files changed, 27 insertions(+)
 create mode 100644 .github/workflows/ovs.yml

Comments

0-day Robot March 24, 2020, 8:01 p.m. UTC | #1
Bleep bloop.  Greetings William Tu, I am a robot and I have tried out your patch.
Thanks for your contribution.

I encountered some error that I wasn't expecting.  See the details below.


checkpatch:
WARNING: Line is 192 characters long (recommended limit is 79)
#44 FILE: .github/workflows/ovs.yml:15:
      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

Lines checked: 70, Warnings: 1, Errors: 0


Please check this out.  If you feel there has been an error, please email aconole@redhat.com

Thanks,
0-day Robot
diff mbox series

Patch

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@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@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 =