This action runs pkgcheck over an ebuild repository.
Custom arguments can be any arguments used with pkgcheck scan
when running
pkgcheck directly on the command line. For example, to ignore RedundantVersion
results use the following setting:
uses: pkgcore/pkgcheck-action@v1
with:
args: --keywords=-RedundantVersion
By default, the latest pkgcheck release is installed. This option allows installing a custom set of packages. Multiple packages can be specified as a space-separated list if required.
Use of this option targets those who want to pin to a specific release for whatever reason (e.g. bugs in newer versions) via:
uses: pkgcore/pkgcheck-action@v1
with:
pkgs: pkgcheck==0.9.2
or those that want to live on the edge running pkgcheck from git:
uses: pkgcore/pkgcheck-action@v1
with:
pkgs: https://github.com/pkgcore/pkgcheck/archive/master.tar.gz
Failures occur when error level results are found that match Gentoo CI settings. If any occur they will be displayed again separately from the main pkgcheck output in order to highlight the cause of the failure.
Workflow with no custom arguments:
name: pkgcheck
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run pkgcheck
uses: pkgcore/pkgcheck-action@v1
Workflow with custom pkgcheck arguments:
name: pkgcheck
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run pkgcheck
uses: pkgcore/pkgcheck-action@v1
with:
args: --keywords=-RedundantVersion