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