From 3dcf3e524adc240b369a1abe2bf24b9664c49f71 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Mon, 18 Dec 2023 16:54:15 +0200 Subject: [PATCH] .github/workflows: add pkgcheck actions Signed-off-by: Alfred Wingate Closes: https://github.com/gentoo/kde/pull/962 Signed-off-by: Sam James --- .github/workflows/pkgcheck.yaml | 13 +++++++++++++ .github/workflows/pkgcheck_merge.yaml | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/pkgcheck.yaml create mode 100644 .github/workflows/pkgcheck_merge.yaml diff --git a/.github/workflows/pkgcheck.yaml b/.github/workflows/pkgcheck.yaml new file mode 100644 index 00000000000..433273bc72b --- /dev/null +++ b/.github/workflows/pkgcheck.yaml @@ -0,0 +1,13 @@ +name: pkgcheck +on: + push: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Run pkgcheck + uses: pkgcore/pkgcheck-action@v1 diff --git a/.github/workflows/pkgcheck_merge.yaml b/.github/workflows/pkgcheck_merge.yaml new file mode 100644 index 00000000000..651883127f9 --- /dev/null +++ b/.github/workflows/pkgcheck_merge.yaml @@ -0,0 +1,17 @@ +name: pkgcheck_merge +on: + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 2 + - name: Run pkgcheck + uses: pkgcore/pkgcheck-action@v1 + with: + args: --exit warning --commits HEAD^..${{ github.sha }}