Skip to content

Commit 3ac0e7d

Browse files
committed
✨feat(fedora): GitHub action to check if packages exist.
1 parent 5146af8 commit 3ac0e7d

3 files changed

Lines changed: 140 additions & 2 deletions

File tree

tests/test-arch-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# NormalNvim test to check if all arch linux AUR dependencies still exist.
3+
# NormalNvim test to check if all arch linux dependencies still exist.
44

55

66
# Imports

tests/test-fedora-dependencies.sh

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
#!/usr/bin/env bash
2+
#
3+
# NormalNvim test to check if all Fedora dependencies still exist.
4+
5+
6+
# Imports
7+
source "$(dirname "$0")/test-utils.sh" # Functions to check packages
8+
9+
10+
# CHECK DEPENDENCIES
11+
# -----------------------------------------------------------------------------
12+
13+
echo "--------------------------------------"
14+
echo "NormalNvim dependencies - Fedora Linux"
15+
echo "--------------------------------------"
16+
# fedora
17+
echo "- Fedora packages -"
18+
dependencies=(
19+
"rust-fd-find/fd-find"
20+
"rust-git-delta/git-delta"
21+
"rustup/rustup"
22+
"pytest/python3-pytest"
23+
)
24+
check_fedora_dependencies "${dependencies[@]}" || exit 1
25+
26+
# python
27+
printf '\n%s\n' "- Python packages -"
28+
dependencies=(
29+
"pynvim" # Will probably provoke a warning on ubuntu, since PEP 688
30+
)
31+
check_python_dependencies "${dependencies[@]}" || exit 1
32+
33+
# npm
34+
printf '\n%s\n' "- NPM packages -"
35+
dependencies=(
36+
"yarn"
37+
"jest"
38+
)
39+
check_npm_dependencies "${dependencies[@]}" || exit 1
40+
41+
# cargo
42+
printf '\n%s\n' "- Cargo packages -"
43+
dependencies=(
44+
"cargo-nextest"
45+
"grcov"
46+
)
47+
check_cargo_dependencies "${dependencies[@]}" || exit 1
48+
printf '\n\n\n\n'
49+
50+
51+
52+
53+
echo "--------------------------"
54+
echo "Compiler.nvim dependencies"
55+
echo "--------------------------"
56+
# fedora
57+
echo "- Fedora packages -"
58+
dependencies=(
59+
"mingw-gcc/mingw64-gcc"
60+
"binutils/binutils" # includes ld
61+
"dotnet6.0/dotnet"
62+
"dotnet6.0/dotnet-runtime-6.0"
63+
"dotnet6.0/dotnet-sdk-6.0"
64+
"dotnet6.0/aspnetcore-runtime-6.0"
65+
"mono/mono-complete"
66+
"java-21-openjdk/java-21-openjdk"
67+
"elixir/elixir"
68+
"nodejs/nodejs"
69+
"nodejs/npm"
70+
"typescript/typescript"
71+
"make/make"
72+
"golang/golang"
73+
"nasm/nasm"
74+
"R-rlang/R-rlang"
75+
"ruby/ruby"
76+
"perl/perl"
77+
"lua/lua"
78+
"swift-lang/swift-lang"
79+
)
80+
check_fedora_dependencies "${dependencies[@]}" || exit 1
81+
82+
# python
83+
printf '\n%s\n' "- Python packages -"
84+
dependencies=(
85+
"Nuitka"
86+
"pyinstaller"
87+
)
88+
check_python_dependencies "${dependencies[@]}" || exit 1
89+
printf '\n\n\n\n'
90+
91+
92+
93+
94+
echo "-----------------------"
95+
echo "Dooku.nvim dependencies"
96+
echo "-----------------------"
97+
# Fedora
98+
echo "- Fedora packages -"
99+
dependencies=(
100+
"doxygen"
101+
)
102+
check_fedora_dependencies "${dependencies[@]}" || exit 1
103+
104+
# npm
105+
printf '\n%s\n' "- NPM packages -"
106+
dependencies=(
107+
"jsdoc"
108+
"typedoc"
109+
)
110+
check_npm_dependencies "${dependencies[@]}" || exit 1
111+
112+
# go
113+
printf '\n%s\n' "- Go packages -"
114+
dependencies=(
115+
"godoc"
116+
)
117+
check_go_dependencies "${dependencies[@]}" || exit 1
118+
printf '\n\n\n\n'
119+
120+
121+
122+
123+
# info
124+
echo "-----------------------"
125+
echo "Unsuported dependencies"
126+
echo "-----------------------"
127+
echo " * dart"
128+
echo " * flutter"
129+
echo " * kotlin"
130+
printf '\n\n\n\n'
131+
132+
133+
134+
135+
echo "-------------------------------"
136+
echo "SUCCESS: All deps are available"
137+
echo "-------------------------------"

tests/test-termux-dependencies.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ printf '\n\n\n\n'
127127
echo "-----------------------"
128128
echo "Unsuported dependencies"
129129
echo "-----------------------"
130-
echo " * dotnet"
130+
echo " * flutter"
131131
echo " * r language"
132+
echo " * dotnet"
132133
printf '\n\n\n\n'
133134

134135
echo "-------------------------------"

0 commit comments

Comments
 (0)