From 4b44fedbb94a12ed12e7c82eb0c404f8adb3022f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Mon, 30 Oct 2023 11:02:49 +0100 Subject: [PATCH] Check: lint Packit configuration as part of CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will ensure that our Packit config stays valid. Signed-off-by: Tomáš Hozza --- .github/workflows/check.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index cc360af0..e9c192d7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -45,6 +45,24 @@ jobs: severity: warning token: ${{ secrets.GITHUB_TOKEN }} + 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 + snapshots: name: "🔍 Check for valid snapshot urls" runs-on: ubuntu-20.04