]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
github: create validate workflow
authorJaroslav Kysela <perex@perex.cz>
Wed, 19 Feb 2020 07:59:57 +0000 (08:59 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 19 Feb 2020 09:21:30 +0000 (10:21 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
.github/workflows/validate.yml [new file with mode: 0644]

diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
new file mode 100644 (file)
index 0000000..f820687
--- /dev/null
@@ -0,0 +1,31 @@
+name: Validate UCM configuration
+
+on: [push, pull_request]
+
+jobs:
+  ucm_validate:
+    runs-on: ubuntu-latest
+    container:
+      image: fedora:latest
+    steps:
+    - name: Prepare environment
+      run: |
+        dnf -y upgrade
+        dnf -y install alsa-lib-devel python3 make
+    - name: Checkout
+      uses: actions/checkout@v2
+      with:
+        path: alsa-ucm-conf
+    - name: Checkout alsa-tests
+      uses: actions/checkout@v2
+      with:
+        repository: alsa-project/alsa-tests
+        path: alsa-tests
+    - name: Validate syntax
+      run: |
+        cd alsa-tests/python/ucm-validator
+        make LOGLEVEL=2 verify
+    - name: Validate configurations
+      run: |
+        cd alsa-tests/python/ucm-validator
+        make LOGLEVEL=2 configs