Long inline shell and repeated explanations obscure the job sequence. The engine already has its own selftest. Because one failed issue update must not cancel the others, disable matrix fail-fast. An empty eix result must produce an empty package map. Pin the push action because the dependency-table job grants it write access. Signed-off-by: Zakk <zakk@gentoozh.org>
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
name: pkgcheck
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
scan:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Run pkgcheck
|
|
uses: pkgcore/pkgcheck-action@v1
|
|
with:
|
|
args: --checks=-RedundantVersionCheck --keywords=-NonsolvableDepsInDev --exit=NonexistentDeps
|
|
|
|
# Ebuilds execute PR code; the write token belongs to pkgcheck-comment.
|
|
report:
|
|
if: github.event_name == 'pull_request'
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/pkgcore/pkgcheck:latest
|
|
defaults:
|
|
run:
|
|
# The image has no /bin/bash symlink.
|
|
shell: bash
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Collect the packages this PR touches
|
|
id: pkgs
|
|
run: scripts/pkgcheck-report.sh packages
|
|
|
|
- name: Scan
|
|
if: steps.pkgs.outputs.count != '0'
|
|
run: scripts/pkgcheck-report.sh scan
|
|
|
|
- name: Stage the report
|
|
if: always()
|
|
run: scripts/pkgcheck-report.sh stage
|
|
|
|
- name: Upload the report
|
|
if: always()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: pkgcheck-report
|
|
path: pkgcheck-report/
|