]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
github: Add continuous integration workflow
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 5 Jan 2022 20:18:29 +0000 (13:18 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 5 Jan 2022 20:18:29 +0000 (13:18 -0700)
Add a continuous integration workflow that runs on Github
Actions.  Enable the python syntax errors action.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
.github/workflows/continuous-integration.yml [new file with mode: 0644]

diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
new file mode 100644 (file)
index 0000000..71b8b0c
--- /dev/null
@@ -0,0 +1,30 @@
+#
+# Continuous Integration Workflow for libcgroup-tests
+#
+# Copyright (c) 2022 Oracle and/or its affiliates.
+# Author: Tom Hromatka <tom.hromatka@oracle.com>
+#
+
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of version 2.1 of the GNU Lesser General Public License as
+# published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this library; if not, see <http://www.gnu.org/licenses>.
+#
+
+name: Continuous Integration
+on: ["push", "pull_request"]
+
+jobs:
+  lint:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - uses: cclauss/Find-Python-syntax-errors-action@master