File tree Expand file tree Collapse file tree 5 files changed +21
-41
lines changed Expand file tree Collapse file tree 5 files changed +21
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 28
28
uses : vmactions/freebsd-vm@v1
29
29
with :
30
30
prepare : |
31
- pkg install -y gmake autoconf automake libtool pkgconf gettext gperf glib ffmpeg libconfuse libevent libxml2 libgcrypt libunistring libiconv curl libplist libinotify avahi sqlite3 alsa-lib libsodium json-c libwebsockets protobuf-c bison flex
31
+ pkg install -y gmake autoconf automake libtool pkgconf gettext gperf glib ffmpeg libconfuse libevent libxml2 libgcrypt libunistring libiconv curl libplist libinotify avahi sqlite3 alsa-lib libsodium json-c libwebsockets protobuf-c bison flex node npm
32
32
pw user add owntone -m -d /usr/local/var/cache/owntone
33
33
34
34
run : |
Original file line number Diff line number Diff line change 36
36
make
37
37
make check
38
38
make distcheck
39
+ make web-check
39
40
40
41
- name : Install
41
42
run : |
Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ web-update:
120
120
$(MAKE ) web-update -C web-src
121
121
web-serve :
122
122
$(MAKE ) web-serve -C web-src
123
+ web-check :
124
+ $(MAKE ) web-check -C web-src
123
125
web-lint :
124
126
$(MAKE ) web-lint -C web-src
125
127
web-format :
Original file line number Diff line number Diff line change @@ -191,8 +191,24 @@ web-serve: node_modules
191
191
web-update :
192
192
$(if $(NPM ) ,$(NPM ) update)
193
193
194
+ web-check :
195
+ @echo " Verifying that all source files in 'src' and 'public' are listed in WEB_FILES ..."
196
+ @unexpected_files=0; \
197
+ for file in $$ (find public src -type f); do \
198
+ if ! echo " $( WEB_FILES) " | grep -q " $$ file " ; then \
199
+ echo " Unknown web interface source file found: $$ file" ; \
200
+ unexpected_files=1; \
201
+ fi ; \
202
+ done ; \
203
+ if [ $$ unexpected_files -eq 0 ]; then \
204
+ echo " All source files listed in WEB_FILES." ; \
205
+ else \
206
+ echo " FAILURE: Unknown web interface source files found, please add them to WEB_FILES." ; \
207
+ exit 1; \
208
+ fi
209
+
194
210
web-lint : node_modules
195
- $(if $(NPM ) ,$(NPM ) run lint)
211
+ $(if $(NPM ) ,$(NPM ) run lint --no-fix )
196
212
197
213
web-format : node_modules
198
214
$(if $(NPM ) ,$(NPM ) run format)
You can’t perform that action at this time.
0 commit comments