Check packages upstream, test hampackcheck and the conf files, add CI
`hampackcheck packages` (and `make check-packages`) checks that every package in packages.conf is in the repos or on the AUR and every Flatpak is on Flathub, and fails if any is missing or couldn't be checked. Names only provided by another package pass with a note. New tests cover hampackcheck's version comparisons and package check, and check compile.conf, binaries.conf, packages.conf and the desktop files for missing or misspelt fields and paths that don't exist. A Gitea workflow runs lint and tests on every push and pull request, and the package check on those and weekly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
bb5c7900d5
commit
8023b04024
@@ -0,0 +1,38 @@
|
||||
# Lint and test every push and pull request, and check that every package in
|
||||
# packages.conf can still be installed. Packages can be renamed or dropped
|
||||
# upstream without any change here, so that check also runs once a week.
|
||||
name: check
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: "17 6 * * 1"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
lint-and-test:
|
||||
if: github.event_name != 'schedule'
|
||||
runs-on: ubuntu-latest
|
||||
container: archlinux:latest
|
||||
steps:
|
||||
# nodejs is for actions/checkout itself
|
||||
- name: Install tools
|
||||
run: pacman -Syu --noconfirm --needed bats shellcheck make git jq zip unzip curl which diffutils file nodejs
|
||||
- uses: actions/checkout@v4
|
||||
# As an ordinary user, as a developer runs them: root ignores file permissions
|
||||
- name: make lint test
|
||||
run: |
|
||||
useradd -m tester
|
||||
chown -R tester "$GITHUB_WORKSPACE"
|
||||
su tester -c "cd '$GITHUB_WORKSPACE' && make check"
|
||||
|
||||
packages:
|
||||
runs-on: ubuntu-latest
|
||||
container: archlinux:latest
|
||||
steps:
|
||||
- name: Install tools
|
||||
run: pacman -Syu --noconfirm --needed make git jq curl nodejs
|
||||
- uses: actions/checkout@v4
|
||||
- name: make check-packages
|
||||
run: make check-packages
|
||||
Reference in New Issue
Block a user