Revert "Add ES 5 syntax check (#4291)"
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 15 Jun 2021 07:49:33 +0000 (09:49 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 15 Jun 2021 07:49:33 +0000 (09:49 +0200)
This is only needed in '5.3', thus it is being reverted for 5.4+.

This reverts commit 2d35dbce84fbe97e8dc80629d889b51953e1641e.

.github/workflows/javascript.yml

index 9a0da3f04db7f94a95c398857bd00497cb541da1..c339bc3a436b32faab44bb8eb74c399364ea0bcb 100644 (file)
@@ -30,22 +30,3 @@ jobs:
           |awk 'BEGIN {m=0} /(.js):[0-9]+$/ {m=1; printf "%s - ",$0} m==1 && /^SyntaxError/ { m=0; print }' \
           |sed "s@$(pwd)@.@" \
           |grep '^'
-  es5:
-    name: "Check ES5 Syntax"
-    runs-on: ubuntu-latest
-    strategy:
-      fail-fast: false
-    steps:
-    - name: Set up node.js
-      uses: actions/setup-node@v1
-      with:
-        node-version: "12"
-    - uses: actions/checkout@v2
-    - run: npm i es5-validator debug --save-dev
-    - name: Remove files to be ignored
-      run: |
-        rm wcfsetup/install/files/js/3rdParty/prism/build.js
-        rm wcfsetup/install/files/js/3rdParty/zxcvbn.js
-    - run: |
-        ! find wcfsetup/ -type f -name '*.js' -exec node_modules/.bin/es5-validator '{}' \; 2>&1 \
-          |grep 'ECMAScript 5 validate failed'