check deps in CI - remove @vueuse/router - #1815

This commit is contained in:
Laurent GAY
2025-10-29 17:09:28 +01:00
committed by setop
parent af93502ad6
commit b162f45bbb
7 changed files with 267 additions and 252 deletions

38
check_deps.sh Executable file
View File

@@ -0,0 +1,38 @@
#!/bin/bash
ELIXIR_LIB_EXCLUDE="ueberauth_cas"
VUEJS_LIB_EXCLUDE="@apollo/client @vueuse/core tailwindcss"
let EXITVALUE=0
mix hex.outdated | grep -v "Up-to-date"
ELIXIR_ERROR=$(mix hex.outdated | grep 'Update possible' | awk '{print $1}')
if [ ! -z "$ELIXIR_ERROR" ]
then
for lib_item in $(echo $ELIXIR_ERROR)
do
echo $ELIXIR_LIB_EXCLUDE | grep $lib_item > /dev/null
if [ $? -ne 0 ]
then
echo "> Bad Elixir dependancies: $lib_item"
let EXITVALUE=1
fi
done
fi
npm outdated
VUEJS_ERROR=$(npm outdated | grep 'mobilizon' | awk '{print $1}' )
if [ ! -z "$VUEJS_ERROR" ]
then
for lib_item in $(echo $VUEJS_ERROR)
do
echo $VUEJS_LIB_EXCLUDE | grep $lib_item > /dev/null
if [ $? -ne 0 ]
then
echo "> Bad VueJS dependancies: $lib_item"
let EXITVALUE=1
fi
done
fi
exit $EXITVALUE