From eb9b9ecee158fb4f25adb18d9f10c3f2ee3caf57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 6 May 2022 09:12:15 +0200 Subject: [PATCH] Add check that dependencies are in sync to javascript.yml --- .github/workflows/javascript.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 2154a04388..82aab75494 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -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 -- 2.20.1