summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2021-02-12 10:32:07 +1300
committerRobert Ancell <robert.ancell@gmail.com>2021-02-12 10:42:42 +1300
commit97dc99a3a7a20ecf4db15b9536bd82a79078a8d5 (patch)
tree1b1885c073aa96b47ec6f1bea8f6cea97ea18d8c
parentf3fa27eeeef9aa902d27ec33b90111c79525635d (diff)
downloadlightdm-git-97dc99a3a7a20ecf4db15b9536bd82a79078a8d5.tar.gz
Add test GitHub action
-rw-r--r--.github/workflows/test.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
new file mode 100644
index 00000000..9c04cae2
--- /dev/null
+++ b/.github/workflows/test.yaml
@@ -0,0 +1,40 @@
+name: Test
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ test:
+ strategy:
+ matrix:
+ image:
+ - ubuntu:rolling
+ - fedora:latest
+
+ runs-on: ubuntu-latest
+ container: ${{ matrix.image }}
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install dependencies (Ubuntu)
+ if: startsWith(matrix.image, 'ubuntu:')
+ run: |
+ apt-get update
+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gtk-doc-tools intltool libaudit-dev libgcrypt20-dev libgirepository1.0-dev libglib2.0-dev libpam0g-dev libtool libxcb1-dev libxdmcp-dev libxklavier-dev qtbase5-dev valac yelp-tools
+
+ - name: Install dependencies (Fedora)
+ if: startsWith(matrix.image, 'fedora:')
+ run: |
+ dnf install -y audit-libs-devel gcc gcc-c++ gobject-introspection-devel glib2-devel gtk-doc intltool libgcrypt-devel libtool libxcb-devel libxklavier-devel libXdmcp-devel make pam-devel qt5-qtbase-devel redhat-rpm-config vala yelp-tools
+
+ - name: Build
+ run: |
+ ./autogen.sh --disable-silent-rules --enable-gtk-doc
+ make
+
+ - name: Test
+ run: make check