GH Action: check the SPEC osbuild/images deps minimum version
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 <thozza@redhat.com>
This commit is contained in:
parent
a5994eb570
commit
724ffd4a77
1 changed files with 35 additions and 0 deletions
35
.github/workflows/check-spec.yaml
vendored
Normal file
35
.github/workflows/check-spec.yaml
vendored
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue