From 2aa9755f8802ff1ef1f8d3a05e1b94ff43c1d3b5 Mon Sep 17 00:00:00 2001 From: David Rheinsberg Date: Tue, 26 May 2020 16:15:56 +0200 Subject: [PATCH] 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. --- .github/workflows/tests.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 613067fe..336b5508 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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