aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2020-02-19 08:59:57 +0100
committerJaroslav Kysela <perex@perex.cz>2020-02-19 10:21:30 +0100
commit22619ef2f3c0557c3b6dd1f461f524ee017eda65 (patch)
treeb0aab0bf7e1c3e16ad27a84f84b7b0b95ccd04d9
parent14c768eacd923c3b8bfe3dd027464a5d423e3773 (diff)
github: create validate workflow
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--.github/workflows/validate.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
new file mode 100644
index 0000000..f820687
--- /dev/null
+++ b/.github/workflows/validate.yml
@@ -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