diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-12-13 11:07:02 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-12-20 14:40:45 +1000 |
commit | fd6483fce82fcb89ca86bb0bdbead894df9186c9 (patch) | |
tree | 320d67dfed6078ff9cbbeeaa2b0e4acc5727a870 /.github | |
parent | df93bfc06570c009030d358fc4a38e219e388c8f (diff) | |
download | libwacom-fd6483fce82fcb89ca86bb0bdbead894df9186c9.tar.gz |
CI: add a workflow to check for "sysinfo" in newly added data files
This is a simple grep only, we don't need anything fancier since the
main goal here is to have the CI alert us that the sysinfo is missing.
Fixes #348
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/check-for-sysinfo.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/check-for-sysinfo.yml b/.github/workflows/check-for-sysinfo.yml new file mode 100644 index 0000000..3d8cb67 --- /dev/null +++ b/.github/workflows/check-for-sysinfo.yml @@ -0,0 +1,20 @@ +name: "Check for sysinfo in data files" + +on: [ pull_request ] + +jobs: + checksysinfo: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: tj-actions/changed-files@v11.9 + id: added-files + with: + path: data + - name: Check for sysinfo in all added files + run: | + for file in ${{ steps.added-files.outputs.added_files }}; do + if [[ "$file" == *.tablet ]]; then + grep -q "sysinfo" $file || (echo "Missing reference to sysinfo.DEADBEEF.gz in $file" && exit 1) + fi + done |