Skip to content

Commit

Permalink
Test: lint Packit configuration as part of CI
Browse files Browse the repository at this point in the history
This will ensure that our Packit config stays valid.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
  • Loading branch information
thozza committed Oct 31, 2023
1 parent b58a4b0 commit e143474
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e143474

Please sign in to comment.