Add check that dependencies are in sync to javascript.yml
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 6 May 2022 07:12:15 +0000 (09:12 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 6 May 2022 07:12:15 +0000 (09:12 +0200)
.github/workflows/javascript.yml

index 2154a043881bf6e037ec43a102f015b0482782e6..82aab754947e0afeb68de89afa0ead65d6b9d0fd 100644 (file)
@@ -30,3 +30,22 @@ jobs:
           |awk 'BEGIN {m=0} /(.js):[0-9]+$/ {m=1; printf "%s - ",$0} m==1 && /^SyntaxError/ { m=0; print }' \
           |sed "s@$(pwd)@.@" \
           |grep '^'
+  dependency:
+    name: "Check that npm dependencies are in sync"
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+    steps:
+    - name: Set up node.js
+      uses: actions/setup-node@v2
+      with:
+        node-version: "16"
+    - uses: actions/checkout@v3
+    - name: "Check 'focus-trap'"
+      run: |
+        diff -wu wcfsetup/install/files/js/3rdParty/focus-trap/focus-trap.umd.min.js node_modules/focus-trap/dist/focus-trap.umd.min.js
+        diff -wu wcfsetup/install/files/js/3rdParty/focus-trap/focus-trap.umd.min.js.map node_modules/focus-trap/dist/focus-trap.umd.min.js.map
+    - name: "Check 'tabbable'"
+      run: |
+        diff -wu wcfsetup/install/files/js/3rdParty/focus-trap/index.umd.min.js node_modules/tabbable/dist/index.umd.min.js
+        diff -wu wcfsetup/install/files/js/3rdParty/focus-trap/index.umd.min.js.map node_modules/tabbable/dist/index.umd.min.js.map