Skip to content

Commit

Permalink
feat(ci) test config.js syntax with Duktape 2.2.1
Browse files Browse the repository at this point in the history
This is the version we evaluate config.js with on Android, making it the
lowest common denominator. While being a nifty little engine, it suffers
from not being fully ES6 compliant, so things like arrow functions or
template strings are not implemented.
  • Loading branch information
saghul committed Feb 28, 2025
1 parent 379f77b commit 892b564
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,23 @@ jobs:
esac
wget -qO /tmp/tpl https://github.com/jitsi/tpl/releases/latest/download/tpl-linux-${TPL_ARCH}
chmod +x /tmp/tpl
- name: setup duktape
working-directory: /tmp
run: |
wget https://duktape.org/duktape-2.2.1.tar.xz
tar xvf duktape-2.2.1.tar.xz
cd duktape-2.2.1
make -f Makefile.cmdline
mv duk /usr/local/bin
- name: Run tpl with default values for web
env:
P2P_STUN_SERVERS: stun.l.google.com:19302,stun1.l.google.com:19302,stun2.l.google.com:19302
run: |
/tmp/tpl web/rootfs/defaults/system-config.js > /tmp/config.js
/tmp/tpl web/rootfs/defaults/settings-config.js >> /tmp/config.js
echo "console.log(JSON.stringify(config));" >> /tmp/config.js
- name: Check config.js syntax
run: node /tmp/config.js
run: duk /tmp/config.js
- name: Run tpl with default values for jvb
run: |
/tmp/tpl jvb/rootfs/defaults/jvb.conf > /tmp/jvb.conf
Expand Down

0 comments on commit 892b564

Please sign in to comment.