Browse Source

Merge remote-tracking branch 'origin/develop' into xap

QMK Bot 5 months ago
parent
commit
0d989024d3
1 changed files with 29 additions and 2 deletions
  1. 29 2
      .github/workflows/lint.yml

+ 29 - 2
.github/workflows/lint.yml

@@ -31,7 +31,7 @@ jobs:
       with:
         use_rest_api: true
 
-    - name: Print info
+    - name: Print git info
       run: |
         git rev-parse --short HEAD
         echo ${{ github.event.pull_request.base.sha }}
@@ -78,10 +78,37 @@ jobs:
         fi
         exit $exit_code
 
-    - name: Verify keyboard aliases
+    - name: Reset git repo
       if: always()
       shell: 'bash {0}'
       run: |
         git reset --hard
         git clean -xfd
+
+    - name: Verify keyboard targets
+      if: always()
+      shell: 'bash {0}'
+      run: |
+        exit_code=0
+
+        for file in $(find keyboards/ -name rules.mk | grep -v /keymaps/ | grep -v /common/ | grep -v /lib/); do
+            dir=$(dirname $file)
+
+            $(find $dir -name keyboard.json -exec false {} +)
+            if [[ $? == 0 ]]; then
+                echo "$dir::Legacy target detected"
+
+                ((++exit_code))
+            fi
+        done
+
+        if [[ $exit_code -gt 255 ]]; then
+            exit 255
+        fi
+        exit $exit_code
+
+    - name: Verify keyboard aliases
+      if: always()
+      shell: 'bash {0}'
+      run: |
         qmk ci-validate-aliases