From cb0db496dcff873e548069a0cb22fe0264a5ad01 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 28 Apr 2020 17:04:13 +0200 Subject: [PATCH] ci: validate the samples Use the new `--inspect` feature of osbuild to validate all our samples. --- .github/workflows/tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 870ead16..b450d58a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -80,6 +80,28 @@ jobs: cd osbuild python3 -m unittest -v test.test_objectstore + sample_validation: + name: "sample validation" + runs-on: ubuntu-latest + container: + image: docker.io/library/python:3.7 + steps: + - name: Clone repository + uses: actions/checkout@v2 + with: + path: osbuild + + - name: Install Dependencies + run: | + pip install jsonschema + + - name: Validate the samples + run: | + cd osbuild + for f in samples/*; do + python3 -m osbuild --libdir . --inspect "$f" > /dev/null + done + rpm_build: name: "📦 RPM" runs-on: ubuntu-latest