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:
parent
020e78d571
commit
2aa9755f88
1 changed files with 13 additions and 0 deletions
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue