fix(test): Fix formatting
Tests / tests (push) Failing after 25s

This commit is contained in:
alvinlollo
2026-10-08 18:53:51 +11:00
parent 01913f7682
commit 3f3bba05f3
+16 -6
View File
@@ -302,23 +302,33 @@ jobs:
echo "" echo ""
echo "✅ All packages verified successfully!" echo "✅ All packages verified successfully!"
fi fi
- name: Check for conflicting packages - name: Check for conflicting packages
run: | run: |
echo "═══════════════════════════════════════════════════════════════" echo "═══════════════════════════════════════════════════════════════"
echo " Checking for conflicting packages in packages.x86_64" echo " Checking for conflicting packages in packages.x86_64"
echo "═══════════════════════════════════════════════════════════════" echo "═══════════════════════════════════════════════════════════════"
# Collect all package names from the list # Sync databases first so pacman knows what exists
sudo pacman -Sy --noconfirm
# Collect only packages that exist in the official repositories
PKGS=() PKGS=()
while IFS= read -r pkg; do while IFS= read -r pkg; do
[[ -z "$pkg" || "$pkg" =~ ^# ]] && continue [[ -z "$pkg" || "$pkg" =~ ^# ]] && continue
PKGS+=("$pkg")
# Check if the package exists in official repos
if pacman -Si "$pkg" >/dev/null 2>&1; then
PKGS+=("$pkg")
else
echo "⚠️ Skipping AUR/missing package: $pkg"
fi
done < packages.x86_64 done < packages.x86_64
# Run pacman directly with the array to catch conflict errors # Run conflict check only if we have official packages to test
if CONFLICTS=$(pacman -Sp --needed "${PKGS[@]}" 2>&1); then if [ ${#PKGS[@]} -eq 0 ]; then
echo "✅ No package conflicts detected" echo "✅ No official packages to check."
elif CONFLICTS=$(pacman -Sp --needed "${PKGS[@]}" 2>&1); then
echo "✅ No package conflicts detected among official packages"
else else
echo "------- Pacman Output -------" echo "------- Pacman Output -------"
echo "$CONFLICTS" echo "$CONFLICTS"