Test: lint Packit configuration as part of CI

This will ensure that our Packit config stays valid.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-10-30 10:52:41 +01:00 committed by Tomáš Hozza
parent b58a4b0009
commit e1434746a2

View file

@ -131,6 +131,24 @@ jobs:
version: v1.54.2
args: --verbose --timeout 5m0s
packit-config-lint:
name: "📦 Packit config lint"
runs-on: ubuntu-latest
container:
image: registry.fedoraproject.org/fedora:latest
steps:
- name: Install Packit
run: dnf -y install packit
- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Validate Packit config
run: |
packit validate-config .packit.yaml
prepare:
name: "🔍 Check source preparation"
runs-on: ubuntu-20.04