https://github.com/pkgcore/pkgcheck-action
Run pkgcheck for ebuild repos via GitHub action.
https://github.com/pkgcore/pkgcheck-action
actions ci ebuilds gentoo github-actions qa
Last synced: 5 months ago
JSON representation
Run pkgcheck for ebuild repos via GitHub action.
- Host: GitHub
- URL: https://github.com/pkgcore/pkgcheck-action
- Owner: pkgcore
- License: bsd-3-clause
- Created: 2021-02-13T05:23:04.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-03T08:19:08.000Z (over 2 years ago)
- Last Synced: 2024-03-25T22:23:00.340Z (about 2 years ago)
- Topics: actions, ci, ebuilds, gentoo, github-actions, qa
- Homepage:
- Size: 2.5 MB
- Stars: 7
- Watchers: 5
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkgcheck action
This action runs pkgcheck over an ebuild repository.
## Inputs
### `args` (optional) -- custom arguments for pkgcheck
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:
```yaml
uses: pkgcore/pkgcheck-action@v1
with:
args: --keywords=-RedundantVersion
```
To enable network checks, you can add ``--net`` to ``args``:
```yaml
uses: pkgcore/pkgcheck-action@v1
with:
args: --net
```
## Action failures
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.
## Example workflows
Workflow with no custom arguments:
```yaml
name: pkgcheck
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run pkgcheck
uses: pkgcore/pkgcheck-action@v1
```
Workflow with custom pkgcheck arguments:
```yaml
name: pkgcheck
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run pkgcheck
uses: pkgcore/pkgcheck-action@v1
with:
args: --keywords=-RedundantVersion
```