ci: regenerate test data

Run the MPP tools in the CI and verify the committed test-data did not
change and is up-to-date.

This runs `make test-data` and then simply uses `git diff --exit-code`
to trigger a CI failure if there are any differences in ./test/data.
This commit is contained in:
David Rheinsberg 2020-05-26 16:15:56 +02:00
parent 020e78d571
commit 2aa9755f88

View file

@ -100,3 +100,16 @@ jobs:
for f in samples/*; do
python3 -m osbuild --libdir . --inspect "$f" > /dev/null
done
test_data:
name: "Regenerate Test Data"
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
- name: "Regenerate Test Data"
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
with:
run: |
make --always-make test-data
git diff --exit-code -- ./test/data