From 724ffd4a77c4eb13cca6974f96415a6adcc2ec5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Tue, 1 Apr 2025 13:38:24 +0200 Subject: [PATCH] GH Action: check the SPEC osbuild/images deps minimum version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a check which leverages the osbuild/images@check-spec-deps-action action to check that the SPEC files requires at least the minimum versions for dependencies specified by the `osbuild/images`. Signed-off-by: Tomáš Hozza --- .github/workflows/check-spec.yaml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/check-spec.yaml diff --git a/.github/workflows/check-spec.yaml b/.github/workflows/check-spec.yaml new file mode 100644 index 0000000..ee86810 --- /dev/null +++ b/.github/workflows/check-spec.yaml @@ -0,0 +1,35 @@ +name: SPEC file check + +on: # yamllint disable-line rule:truthy + pull_request: + branches: + - "*" + push: + branches: + - main + +jobs: + check-spec-images-deps: + name: "🔍 Check spec file osbuild/images dependencies" + runs-on: ubuntu-latest + container: registry.fedoraproject.org/fedora:latest + env: + # workaround for expired cert at source of indirect dependency + # (go.opencensus.io/trace) + GOPROXY: "https://proxy.golang.org,direct" + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + shell: bash + run: | + # we have the same build-deps as the images library + curl -sL https://raw.githubusercontent.com/osbuild/images/refs/heads/main/test/scripts/install-dependencies | bash + + - name: Vendor dependencies + run: go mod vendor + + - name: Check dependencies in spec file + uses: osbuild/images@check-spec-deps-action