Skip to content

fix: match autostart membership to what the UI renders #24

fix: match autostart membership to what the UI renders

fix: match autostart membership to what the UI renders #24

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
name: Lint + build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Install tools
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libxml2-utils
- name: PHP syntax check
run: |
status=0
while IFS= read -r f; do
php -l "$f" || status=1
done < <(find src -name '*.php')
exit $status
- name: Validate plugin manifest (XML)
run: xmllint --noout folder.view3.plg
- name: Test build
run: |
chmod +x pkg_build.sh
bash pkg_build.sh
- name: Verify manifest MD5 matches package
run: |
ver=$(grep -oP '<!ENTITY version\s+"\K[^"]+' folder.view3.plg)
plg_md5=$(grep -oP '<!ENTITY md5\s+"\K[^"]+' folder.view3.plg)
pkg_md5=$(md5sum "archive/folder.view3-${ver}-x86_64-1.txz" | awk '{print $1}')
echo "manifest=$plg_md5 package=$pkg_md5"
[ "$plg_md5" = "$pkg_md5" ]