feat(lint): add tpl lint step for each project (#1983)

* feat(lint): add tpl lint step for each project

* fix path

* fix path

* include jicofo and jibri

* temp cat to test

* more templates to lint

* fix path

* fix jigasi password b64 default behavior
This commit is contained in:
Aaron van Meerten
2024-12-13 12:33:50 -06:00
committed by GitHub
parent 70b75f5294
commit 909820274c
2 changed files with 35 additions and 4 deletions

View File

@@ -27,12 +27,44 @@ jobs:
esac
wget -qO /tmp/tpl https://github.com/jitsi/tpl/releases/download/v1.4.0/tpl-linux-${TPL_ARCH}
chmod +x /tmp/tpl
- name: Run tpl with default values for system-config.js
- name: Run tpl with default values for web
run: |
/tmp/tpl web/rootfs/defaults/system-config.js > /tmp/config.js
/tmp/tpl web/rootfs/defaults/settings-config.js >> /tmp/config.js
- name: Check config.js syntax
run: node /tmp/config.js
- name: Run tpl with default values for jvb
run: |
/tmp/tpl jvb/rootfs/defaults/jvb.conf > /tmp/jvb.conf
/tmp/tpl jvb/rootfs/defaults/logging.properties > /tmp/logging.properties
/tmp/tpl jvb/rootfs/defaults/autoscaler-sidecar.config > /tmp/autoscaler-sidecar.config
- name: Run tpl with default values for jicofo
run: |
/tmp/tpl jicofo/rootfs/defaults/jicofo.conf > /tmp/jicofo.conf
/tmp/tpl jicofo/rootfs/defaults/logging.properties > /tmp/logging.properties
- name: Run tpl with default values for jibri
run: |
/tmp/tpl jibri/rootfs/defaults/jibri.conf > /tmp/jibri.conf
/tmp/tpl jibri/rootfs/defaults/logging.properties > /tmp/logging.properties
/tmp/tpl jibri/rootfs/defaults/xmpp.conf > /tmp/xmpp.conf
/tmp/tpl jibri/rootfs/defaults/xorg-video-dummy.conf > /tmp/xorg-video-dummy.conf
/tmp/tpl jibri/rootfs/defaults/autoscaler-sidecar.config > /tmp/autoscaler-sidecar.config
- name: Run tpl with default values for jigasi
run: |
/tmp/tpl jigasi/rootfs/defaults/sip-communicator.properties > /tmp/sip-communicator.properties
/tmp/tpl jigasi/rootfs/defaults/sipserver-sip-communicator.properties > /tmp/xmpp-sip-communicator.properties
/tmp/tpl jigasi/rootfs/defaults/transcriber-sip-communicator.properties > /tmp/xmpp-sip-communicator.properties
/tmp/tpl jigasi/rootfs/defaults/xmpp-sip-communicator.properties > /tmp/xmpp-sip-communicator.properties
/tmp/tpl jigasi/rootfs/defaults/logging.properties > /tmp/logging.properties
/tmp/tpl jigasi/rootfs/defaults/autoscaler-sidecar.config > /tmp/autoscaler-sidecar.config
- name: Run tpl with default values for prosody
run: |
/tmp/tpl prosody/rootfs/defaults/prosody.cfg.lua > /tmp/prosody.cfg.lua
/tmp/tpl prosody/rootfs/defaults/saslauthd.conf > /tmp/saslauthd.conf
/tmp/tpl prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua > /tmp/jitsi-meet.cfg.lua
/tmp/tpl prosody/rootfs/defaults/conf.d/brewery.cfg.lua > /tmp/brewery.cfg.lua
/tmp/tpl prosody/rootfs/defaults/conf.d/visitors.cfg.lua > /tmp/visitors.cfg.lua
/tmp/tpl prosody/rootfs/defaults/rules.d/jvb_muc_presence_filter.pfw > /tmp/jvb_muc_presence_filter.pfw
build:
runs-on: ubuntu-latest
steps: