diff --git a/.github/workflows/pkgcheck.yaml b/.github/workflows/pkgcheck.yaml new file mode 100644 index 0000000..a41a9db --- /dev/null +++ b/.github/workflows/pkgcheck.yaml @@ -0,0 +1,15 @@ +name: pkgcheck +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - 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 0000000..aec8e17 --- /dev/null +++ b/.github/workflows/pkgcheck_merge.yaml @@ -0,0 +1,18 @@ +name: pkgcheck_merge +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Run pkgcheck + uses: pkgcore/pkgcheck-action@v1 + with: + # RequiredUseDefaults https://github.com/pkgcore/pkgcheck/issues/640 + args: --exit warning -k ,-RequiredUseDefaults --commits HEAD^..${{ github.sha }} diff --git a/README.md b/README.md index a4ea6f9..15d1b36 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![pkgcheck](https://github.com/dguglielmi/sunny-overlay/actions/workflows/pkgcheck.yaml/badge.svg) + # sunny-overlay Sunny-overlay is my personal Gentoo Portage overlay.